New entry widget for text input
[luakit.git] / globalconf.h
blobed81063e8e40f80e670d3eec1bfc7346d22a2394
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_LUA_LIB_PATH "/usr/share/luakit/lib"
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 /* Path to the current config file */
33 gchar *confpath;
34 /* Lua VM state */
35 lua_State *L;
36 /* Global signals table */
37 signal_t *signals;
38 /* Array of windows */
39 GPtrArray *windows;
40 } luakit_t;
42 luakit_t globalconf;
44 #endif
45 // vim: ft=c:et:sw=4:ts=8:sts=4:enc=utf-8:tw=80