From d3b9aa19f04e6be78afb8497e7808a3d42042bf2 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Thu, 26 Jan 2012 22:14:43 -0200 Subject: Better manage moreinfo hashes Have only one for the whole program and use per-module namespaces/prefixes so that each module can clear its own information easily. --- includes/hardinfo.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'includes/hardinfo.h') diff --git a/includes/hardinfo.h b/includes/hardinfo.h index 42a92a30..23a9468a 100644 --- a/includes/hardinfo.h +++ b/includes/hardinfo.h @@ -148,4 +148,13 @@ gchar *h_sysfs_read_string(gchar *endpoint, gchar *entry); #define _CONCAT(a,b) a ## b #define CONCAT(a,b) _CONCAT(a,b) +void moreinfo_init(void); +void moreinfo_shutdown(void); +void moreinfo_add_with_prefix(gchar *prefix, gchar *key, gchar *value); +void moreinfo_add(gchar *key, gchar *value); +void moreinfo_del_with_prefix(gchar *prefix); +void moreinfo_clear(void); +gchar *moreinfo_lookup_with_prefix(gchar *prefix, gchar *key); +gchar *moreinfo_lookup(gchar *key); + #endif /* __HARDINFO_H__ */ -- cgit v1.2.3