Fix stack imbalance in nav decision cb & mime decision cb
[luakit.git] / globalconf.h.in
blob6be512431f877ace200969e65f056193d7945f46
1 /*
2 * globalconf.h - main config struct
4 * Copyright (C) 2010 Mason Larobina <mason.larobina@gmail.com>
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef LUAKIT_GLOBALCONF
22 #define LUAKIT_GLOBALCONF
24 #define LUAKIT_INSTALL_PATH "/usr/local/share/luakit"
25 #define LUAKIT_OBJECT_REGISTRY_KEY "luakit.object.registry"
27 #include <glib/gtypes.h>
28 #include <lua.h>
29 #include "common/signal.h"
31 typedef struct {
32 /* XDG directories */
33 gchar *base_cache_directory;
34 gchar *base_config_directory;
35 gchar *base_data_directory;
36 /* Path to the current config file */
37 gchar *confpath;
38 /* Print verbose output */
39 gboolean verbose;
40 /* Lua VM state */
41 lua_State *L;
42 /* Global signals table */
43 signal_t *signals;
44 /* Array of windows */
45 GPtrArray *windows;
46 } luakit_t;
48 luakit_t globalconf;
50 #endif
51 // vim: ft=c:et:sw=4:ts=8:sts=4:enc=utf-8:tw=80