aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorOndrej Čerman2019-10-12 20:48:29 +0200
committerOndrej Čerman2019-10-12 20:48:29 +0200
commit9795d0c5b8f6cbc0bace0d6b819cbad705f71f10 (patch)
tree9f6b02587a96fb06db9cd869ac9f85537290253a /src/include
parente1beb5791ef4608d20ad8992578a75ecae401eeb (diff)
Added CPU Frequency (reported by OS)
Diffstat (limited to 'src/include')
-rw-r--r--src/include/os.h4
-rw-r--r--src/include/sysfs.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/include/os.h b/src/include/os.h
new file mode 100644
index 0000000..d6af111
--- /dev/null
+++ b/src/include/os.h
@@ -0,0 +1,4 @@
+gboolean os_init();
+void os_update();
+void os_clear_minmax();
+GSList* os_get_sensors();
diff --git a/src/include/sysfs.h b/src/include/sysfs.h
index ec838bf..a079c7d 100644
--- a/src/include/sysfs.h
+++ b/src/include/sysfs.h
@@ -1 +1,3 @@
+#define SYSFS_DIR_CPUS "/sys/devices/system/cpu"
+
gshort* get_cpu_dev_ids();