summary refs log tree commit diff stats
path: root/src/common/sysinfo/sysinfo.h
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2015-10-11 21:34:51 -0700
committertomek <eustachy.kapusta@gmail.com>2015-10-12 19:20:53 +0200
commit7f1ee9dad024e432fce5ffdc3a522c60169555ec (patch)
tree93540a24b73dbab766b1eb046bf873e7a025b98a /src/common/sysinfo/sysinfo.h
parentbe5e2b95661fc1695718159582b6d863f9d3385a (diff)
common: Moved some functions over from plugins/sysinfo that are useful for the rest of HC.
OS name, CPU, GPU, HDD info and build arch are now all available within core HC. OS name and build arch are used in the About dialog.
Diffstat (limited to 'src/common/sysinfo/sysinfo.h')
-rw-r--r--src/common/sysinfo/sysinfo.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common/sysinfo/sysinfo.h b/src/common/sysinfo/sysinfo.h
new file mode 100644
index 00000000..d63bf9d8
--- /dev/null
+++ b/src/common/sysinfo/sysinfo.h
@@ -0,0 +1,13 @@
+#ifndef HEXCHAT_SYSINFO_H
+#define HEXCHAT_SYSINFO_H
+
+#include <glib.h>
+
+int sysinfo_get_cpu_arch (void);
+int sysinfo_get_build_arch (void);
+char *sysinfo_get_cpu (void);
+char *sysinfo_get_os (void);
+void sysinfo_get_hdd_info (guint64 *hdd_capacity_out, guint64 *hdd_free_space_out);
+char *sysinfo_get_gpu (void);
+
+#endif