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
cce2202a
Commit
cce2202a
authored
10 years ago
by
Hisham Muhammad
Browse files
Options
Download
Email Patches
Plain Diff
Work on fixing build of "unsupported" platform
parent
aed9b9d1
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
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile.am
+6
-4
Makefile.am
unsupported/Platform.c
+1
-5
unsupported/Platform.c
unsupported/Platform.h
+7
-0
unsupported/Platform.h
with
14 additions
and
9 deletions
+14
-9
Makefile.am
View file @
cce2202a
...
...
@@ -42,11 +42,13 @@ linux/LinuxProcess.h linux/LinuxProcessList.h linux/LinuxCRT.h linux/Battery.h
endif
if
HTOP_UNSUPPORTED
myhtopplatsources
=
unsupported/Platform.c unsupported/UnsupportedProcessList.c
\
unsupported/UnsupportedCRT.c
myhtopplatsources
=
unsupported/Platform.c
\
unsupported/UnsupportedProcess.c unsupported/UnsupportedProcessList.c
\
unsupported/UnsupportedCRT.c unsupported/Battery.c
myhtopplatheaders
=
unsupported/Platform.h unsupported/UnsupportedProcessList.h
\
unsupported/UnsupportedCRT.h
myhtopplatheaders
=
unsupported/Platform.h
\
unsupported/UnsupportedProcess.h unsupported/UnsupportedProcessList.h
\
unsupported/UnsupportedCRT.h unsupported/Battery.h
endif
SUFFIXES
=
.h
...
...
This diff is collapsed.
Click to expand it.
unsupported/Platform.c
View file @
cce2202a
...
...
@@ -18,6 +18,7 @@ in the source distribution for its full text.
/*{
#include "Action.h"
#include "BatteryMeter.h"
#include "UnsupportedProcess.h"
}*/
void
Platform_setBindings
(
Htop_Action
*
keys
)
{
...
...
@@ -59,8 +60,3 @@ int Platform_getMaxPid() {
return
-
1
;
}
void
Platform_getBatteryLevel
(
double
*
level
,
ACPresence
*
isOnAC
)
{
*
level
=
-
1
;
*
isOnAC
=
AC_ERROR
;
}
This diff is collapsed.
Click to expand it.
unsupported/Platform.h
View file @
cce2202a
...
...
@@ -10,6 +10,8 @@ in the source distribution for its full text.
*/
#include "Action.h"
#include "BatteryMeter.h"
#include "UnsupportedProcess.h"
void
Platform_setBindings
(
Htop_Action
*
keys
);
...
...
@@ -17,4 +19,9 @@ extern MeterClass* Platform_meterTypes[];
int
Platform_getUptime
();
void
Platform_getLoadAverage
(
double
*
one
,
double
*
five
,
double
*
fifteen
);
int
Platform_getMaxPid
();
#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