add osysmon_file.c for reading/monitoring files (like sysfs)
diff --git a/osysmon.h b/osysmon.h
index 399a2bc..45647b1 100644
--- a/osysmon.h
+++ b/osysmon.h
@@ -17,6 +17,8 @@
struct llist_head ctrl_clients;
/* list of 'struct netdev' */
struct llist_head netdevs;
+ /* list of 'struct osysmon_file' */
+ struct llist_head files;
};
extern struct osysmon_state *g_oss;
@@ -40,3 +42,6 @@
int osysmon_sysinfo_init();
int osysmon_sysinfo_poll(struct value_node *parent);
+
+int osysmon_file_init();
+int osysmon_file_poll(struct value_node *parent);