summaryrefslogtreecommitdiffstats
path: root/darwin/Platform.h
diff options
context:
space:
mode:
authorDavid Hunt <dhunt@iolanthe.attlocal.net>2015-07-12 13:47:43 -0500
committerHisham Muhammad <hisham@gobolinux.org>2015-08-19 13:47:26 -0300
commit70e7c8db592408f45b958238d4bbf0048886f6fc (patch)
tree0ee699faad92f38d29d10b5c9faced3436f0c647 /darwin/Platform.h
parentfeb7a01fd32d4a63b9cfb178c67cc95c05c9dc00 (diff)
Added darwin with working battery meter
Diffstat (limited to 'darwin/Platform.h')
-rw-r--r--darwin/Platform.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/darwin/Platform.h b/darwin/Platform.h
new file mode 100644
index 00000000..4fc06f71
--- /dev/null
+++ b/darwin/Platform.h
@@ -0,0 +1,46 @@
+/* Do not edit this file. It was automatically generated. */
+
+#ifndef HEADER_Platform
+#define HEADER_Platform
+/*
+htop - darwin/Platform.h
+(C) 2014 Hisham H. Muhammad
+(C) 2015 David C. Hunt
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
+
+#include "Action.h"
+#include "BatteryMeter.h"
+#include "DarwinProcess.h"
+
+extern ProcessField Platform_defaultFields[];
+
+extern ProcessFieldData Process_fields[];
+
+extern MeterClass* Platform_meterTypes[];
+
+void Platform_setBindings(Htop_Action* keys);
+
+extern int Platform_numberOfFields;
+extern char* Process_pidFormat;
+extern char* Process_tpgidFormat;
+
+int Platform_getUptime();
+
+void Platform_getLoadAverage(double* one, double* five, double* fifteen);
+
+int Platform_getMaxPid();
+
+void Process_setupColumnWidths();
+
+double Platform_setCPUValues(Meter* this, int cpu);
+
+void Platform_setMemoryValues(Meter* this);
+
+void Platform_setSwapValues(Meter* this);
+
+bool Process_isThread(Process* this);
+
+
+#endif

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