Set destructor = NULL in destroy func to prevent it being called twice
[luakit.git] / globalconf.h.in
blob2df0fe88dcbe3a44cba7bfcbb93beed5b36a246e
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 *cache_dir;
34 gchar *config_dir;
35 gchar *data_dir;
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