aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/variables.h
diff options
context:
space:
mode:
authorGravatar David Keijser <keijser@gmail.com>2011-05-25 07:15:35 +0200
committerGravatar David Keijser <keijser@gmail.com>2011-05-25 07:15:35 +0200
commitb970eacf2fbbe5d082515f2085f3b3d4e471d467 (patch)
tree4ae807d36364b4ac2fdb188e9486b32f60db77b0 /src/variables.h
parent8960722f64afdd1bdf2ad3a0ee2546a322fb30c6 (diff)
move core variable stuff into variables file
Diffstat (limited to 'src/variables.h')
-rw-r--r--src/variables.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/variables.h b/src/variables.h
new file mode 100644
index 0000000..653a718
--- /dev/null
+++ b/src/variables.h
@@ -0,0 +1,30 @@
+/*
+ * Uzbl Variables
+ */
+
+#ifndef __VARIABLES__
+#define __VARIABLES__
+
+#include <glib.h>
+#include "type.h"
+
+/* Uzbl variables */
+
+typedef struct {
+ enum ptr_type type;
+ union {
+ int *i;
+ float *f;
+ gchar **s;
+ } ptr;
+ int dump;
+ int writeable;
+ /*@null@*/ void (*func)(void);
+} uzbl_cmdprop;
+
+gboolean set_var_value(const gchar *name, gchar *val);
+void variables_hash();
+void dump_config();
+void dump_config_as_events();
+
+#endif