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.
This commit is contained in:
Arnavion
2015-10-11 21:34:51 -07:00
committed by tomek
parent be5e2b9566
commit 7f1ee9dad0
9 changed files with 544 additions and 535 deletions

View File

@@ -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