summaryrefslogtreecommitdiffstats
path: root/linux/Platform.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-11-27 21:02:52 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-11-27 21:04:57 -0200
commit430c7c9a9b2301fbe574cd9ca6919ed80d6f17a2 (patch)
tree54a2c6e0a39015b4ef22bcd711aee2abd0dfec6a /linux/Platform.h
parentb4f6b110925a56d0818034ad1ecce8214ac873a0 (diff)
Move platform-dependent parts of Linux battery meter.
Diffstat (limited to 'linux/Platform.h')
-rw-r--r--linux/Platform.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/linux/Platform.h b/linux/Platform.h
new file mode 100644
index 00000000..2058419c
--- /dev/null
+++ b/linux/Platform.h
@@ -0,0 +1,27 @@
+/* Do not edit this file. It was automatically generated. */
+
+#ifndef HEADER_Platform
+#define HEADER_Platform
+/*
+htop - linux/Platform.h
+(C) 2014 Hisham H. Muhammad
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
+
+#include "Action.h"
+#include "BatteryMeter.h"
+
+void Platform_setBindings(Htop_Action* keys);
+
+extern MeterClass* Platform_meterTypes[];
+
+int Platform_getUptime();
+
+void Platform_getLoadAverage(double* one, double* five, double* fifteen);
+
+int Platform_getMaxPid();
+
+void Platform_getBatteryLevel(double* level, ACPresence* isOnAC);
+
+#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy