aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/variables.h
blob: 653a7180e04a25fc124161e7002b317e19d2b4e9 (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
27
28
29
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