aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/type.h
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2011-07-12 22:18:46 +0000
committerGravatar Brendan Taylor <whateley@gmail.com>2011-07-12 22:18:46 +0000
commit265c50123eb9df0b6b9fbc3b605f493333b911c4 (patch)
tree1350ae870e3319c7e22b9d2600f70feae2d0247c /src/type.h
parente35037c40fd39967cc1f0fbe15a667c6f534a542 (diff)
fix tests
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;
+