summaryrefslogtreecommitdiffstats
path: root/include/globalvar.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/globalvar.h')
-rw-r--r--include/globalvar.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/globalvar.h b/include/globalvar.h
new file mode 100644
index 0000000000..7cc3976f6b
--- /dev/null
+++ b/include/globalvar.h
@@ -0,0 +1,12 @@
+#ifndef __GLOBALVAR_H
+#define __GLOBALVAR_H
+
+int globalvar_add_simple(const char *name);
+
+int globalvar_add(const char *name,
+ int (*set)(struct device_d *dev, struct param_d *p, const char *val),
+ const char *(*get)(struct device_d *, struct param_d *p),
+ unsigned long flags);
+char *globalvar_get_match(const char *match, const char *seperator);
+
+#endif /* __GLOBALVAR_H */