summaryrefslogtreecommitdiffstats
path: root/Generic.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-03-02 15:58:11 +1100
committerNathan Scott <nathans@redhat.com>2021-03-04 13:40:11 +1100
commit5b50ae3aa3a418f3f84ff2fdb172ab447753814f (patch)
tree17fcbba67e6935b2da236dc8dba4ee7fbfab4177 /Generic.h
parent2328e52403dfa52d122a9f7ccbd365beaedb8c9f (diff)
Separate display from sampling in SysArch and Hostname Meters
Several of our newer meters have merged coding concerns in terms of extracting values and displaying those values. This commit rectifies that for the SysArch and Hostname meters, allowing use of this code with alternative front/back ends. The SysArch code is also refined to detect whether the platform has an os-release file at all and/or the sys/utsname.h header via configure.ac.
Diffstat (limited to 'Generic.h')
-rw-r--r--Generic.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Generic.h b/Generic.h
new file mode 100644
index 00000000..44adc09e
--- /dev/null
+++ b/Generic.h
@@ -0,0 +1,16 @@
+#ifndef HEADER_Generic
+#define HEADER_Generic
+/*
+htop - Generic.h
+(C) 2021 htop dev team
+Released under the GNU GPLv2, see the COPYING file
+in the source distribution for its full text.
+*/
+
+#include <stddef.h>
+
+void Generic_Hostname(char* buffer, size_t size);
+
+char* Generic_OSRelease(void);
+
+#endif