Swapped glib integer types in the sysinfo interface for standard stdint types to remove glib coupling in the header.

Replaced glib string/util usage in the win32 sysinfo backend with local helpers, a small string builder, and Windows UTF-8 conversion, removing the glib dependency there.
This commit is contained in:
2026-01-25 23:32:33 -07:00
parent 5ca3e835a7
commit d4134c94b3
3 changed files with 256 additions and 39 deletions

View File

@@ -1,13 +1,13 @@
#ifndef ZOITECHAT_SYSINFO_H
#define ZOITECHAT_SYSINFO_H
#include <glib.h>
#include <stdint.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);
void sysinfo_get_hdd_info (uint64_t *hdd_capacity_out, uint64_t *hdd_free_space_out);
char *sysinfo_get_gpu (void);
#endif