aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/type.h
blob: 20de0b4f0cde2cfebd1aa2ceed6bd94ca5b02cf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Uzbl Types
 */

enum ptr_type {
    TYPE_INT = 1,
    TYPE_STR,
    TYPE_FLOAT,
    TYPE_NAME,
    // used by send_event
    TYPE_FORMATTEDSTR,
    TYPE_STR_ARRAY
};

typedef struct {
    enum ptr_type type;
    union {
        int   *i;
        float *f;
        gchar **s;
    } ptr;
    int dump;
    int writeable;
    /*@null@*/ void (*func)(void);
} uzbl_cmdprop;