diff options
author | Robert Manea <gotmor@gmail.com> | 2009-05-07 11:28:28 +0200 |
---|---|---|
committer | Robert Manea <gotmor@gmail.com> | 2009-05-07 11:28:28 +0200 |
commit | a7ffb38422e91edb556cbab7382d497ef19d5e6d (patch) | |
tree | a207d32f246e95c6ddefdca8488c2706e2f1327c /uzbl.h | |
parent | 8f3fa4d02de6edfdad86f9f682a686cd9472bc06 (diff) |
move globals to structs, another round.
Diffstat (limited to 'uzbl.h')
-rw-r--r-- | uzbl.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -1,3 +1,4 @@ + /* statusbar symbols */ enum { SYM_TITLE, SYM_URI, SYM_NAME, SYM_LOADPRGS, SYM_LOADPRGSBAR, @@ -21,6 +22,7 @@ typedef struct { gint load_progress; } StatusBar; + /* gui elements */ typedef struct { GtkWidget* main_window; @@ -36,6 +38,7 @@ typedef struct { StatusBar sbar; } GUI; + /* external communication*/ enum { FIFO, SOCKET}; typedef struct { @@ -43,14 +46,21 @@ typedef struct { char socket_path[108]; } Communication; + /* internal state */ typedef struct { gchar *uri; gchar *config_file; gchar *instance_name; gchar config_file_path[500]; + gchar selected_url[500]; + char executable_path[500]; + GString* keycmd; + gchar searchtx[500]; + struct utsname unameinfo; /* system info */ } State; + /* networking */ typedef struct { SoupSession *soup_session; @@ -61,6 +71,7 @@ typedef struct { gint max_conns_host; } Network; + /* behaviour */ typedef struct { gchar* history_handler; @@ -75,6 +86,12 @@ typedef struct { gchar* modkey; guint modmask; guint http_debug; + + /* group bindings: key -> action */ + GHashTable* bindings; + + /* command list: name -> Command */ + GHashTable* commands; } Behaviour; @@ -90,6 +107,7 @@ typedef struct { GScanner *scan; } Uzbl; + typedef struct { char* name; char* param; |