Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
ddbb71d1
Commit
ddbb71d1
authored
10 years ago
by
Hisham Muhammad
Browse files
Options
Download
Email Patches
Plain Diff
Add files to unsupported platform.
parent
adbfe3c3
master
darwin-cpu-average
fixedgray
freebsd
linear-graph-scan
lua
next
perfcounters
pkgconfig-on-linux
solaris
sreclaimable
travis-ci
wip
3.0.0beta5
3.0.0beta4
3.0.0beta3
3.0.0beta2
3.0.0beta1
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
unsupported/Battery.c
+8
-0
unsupported/Battery.c
unsupported/Battery.h
+9
-0
unsupported/Battery.h
unsupported/UnsupportedProcess.c
+37
-0
unsupported/UnsupportedProcess.c
unsupported/UnsupportedProcess.h
+24
-0
unsupported/UnsupportedProcess.h
with
78 additions
and
0 deletions
+78
-0
unsupported/Battery.c
0 → 100644
View file @
ddbb71d1
#include "BatteryMeter.h"
void
Battery_getData
(
double
*
level
,
ACPresence
*
isOnAC
)
{
*
level
=
-
1
;
*
isOnAC
=
AC_ERROR
;
}
This diff is collapsed.
Click to expand it.
unsupported/Battery.h
0 → 100644
View file @
ddbb71d1
/* Do not edit this file. It was automatically generated. */
#ifndef HEADER_Battery
#define HEADER_Battery
void
Battery_getData
(
double
*
level
,
ACPresence
*
isOnAC
);
#endif
This diff is collapsed.
Click to expand it.
unsupported/UnsupportedProcess.c
0 → 100644
View file @
ddbb71d1
/*
htop - UnsupportedProcess.c
(C) 2015 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
#include "Process.h"
#include "UnsupportedProcess.h"
#include <stdlib.h>
/*{
typedef struct UnsupportedProcess_ {
Process super;
// add platform-specific fields here
} UnsupportedProcess;
#define Process_delete UnsupportedProcess_delete
}*/
UnsupportedProcess
*
UnsupportedProcess_new
(
Settings
*
settings
)
{
UnsupportedProcess
*
this
=
calloc
(
sizeof
(
UnsupportedProcess
),
1
);
Object_setClass
(
this
,
Class
(
Process
));
Process_init
(
&
this
->
super
,
settings
);
return
this
;
}
void
UnsupportedProcess_delete
(
Object
*
cast
)
{
UnsupportedProcess
*
this
=
(
UnsupportedProcess
*
)
cast
;
Object_setClass
(
this
,
Class
(
Process
));
Process_done
((
Process
*
)
cast
);
// free platform-specific fields here
free
(
this
);
}
This diff is collapsed.
Click to expand it.
unsupported/UnsupportedProcess.h
0 → 100644
View file @
ddbb71d1
/* Do not edit this file. It was automatically generated. */
#ifndef HEADER_UnsupportedProcess
#define HEADER_UnsupportedProcess
/*
htop - UnsupportedProcess.h
(C) 2015 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
typedef
struct
UnsupportedProcess_
{
Process
super
;
// add platform-specific fields here
}
UnsupportedProcess
;
#define Process_delete UnsupportedProcess_delete
void
UnsupportedProcess_delete
(
Object
*
cast
);
#endif
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help