aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorShun Terabayashi2020-11-08 23:41:11 +0900
committerShun Terabayashi2020-11-08 23:48:06 +0900
commit389c31401bd26ffb2ef5bd1a2b29b1d70693d649 (patch)
treecc377044cdc32da486b0c6cda334ac56734b4003 /src/include
parent25b777967449315dd0d13d17f5a627b1bfe2056d (diff)
Implement for output CSV file
Diffstat (limited to 'src/include')
-rw-r--r--src/include/zenmonitor.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/zenmonitor.h b/src/include/zenmonitor.h
index eba68c0..e135c35 100644
--- a/src/include/zenmonitor.h
+++ b/src/include/zenmonitor.h
@@ -1,6 +1,7 @@
#ifndef __ZENMONITOR_ZENMONITOR_H__
#define __ZENMONITOR_ZENMONITOR_H__
+#include <time.h>
#include <glib.h>
#define ERROR_VALUE -999.0
@@ -27,11 +28,23 @@ typedef struct {
GSList *sensors;
} SensorSource;
+typedef struct {
+ GPtrArray *labels;
+ GPtrArray *data;
+ GArray *time;
+} SensorDataStore;
+
SensorInit* sensor_init_new(void);
void sensor_init_free(SensorInit *s);
gboolean check_zen();
gchar *cpu_model();
guint get_core_count();
+SensorDataStore* sensor_data_store_new();
+void sensor_data_store_add_entry(SensorDataStore *store, gchar *entry);
+gint sensor_data_store_drop_entry(SensorDataStore *store, gchar *entry);
+void sensor_data_store_keep_time(SensorDataStore *store);
+gint sensor_data_store_add_data(SensorDataStore *store, gchar *entry, float data);
+void sensor_data_store_free(SensorDataStore *store);
extern gboolean display_coreid;
#endif /* __ZENMONITOR_ZENMONITOR_H__ */