aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/type.h')
-rw-r--r--src/type.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/type.h b/src/type.h
index 1709128..24fc97f 100644
--- a/src/type.h
+++ b/src/type.h
@@ -2,6 +2,23 @@
* Uzbl Types
*/
-enum ptr_type {TYPE_INT = 1, TYPE_STR, TYPE_FLOAT,
- TYPE_NAME, TYPE_FORMATTEDSTR // used by send_event
+enum ptr_type {
+ TYPE_INT = 1,
+ TYPE_STR,
+ TYPE_FLOAT,
+ TYPE_NAME,
+ TYPE_FORMATTEDSTR // used by send_event
};
+
+typedef struct {
+ enum ptr_type type;
+ union {
+ int *i;
+ float *f;
+ gchar **s;
+ } ptr;
+ int dump;
+ int writeable;
+ /*@null@*/ void (*func)(void);
+} uzbl_cmdprop;
+