| 1 | /** |
| 2 | * This file is part of devilspie2 |
| 3 | * Copyright (C) 2011-2017 Andreas Rönnquist |
| 4 | * |
| 5 | * devilspie2 is free software: you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License as published |
| 7 | * by the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * devilspie2 is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with devilspie2. |
| 17 | * If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | #ifndef __HEADER_SCRIPT_ |
| 20 | #define __HEADER_SCRIPT_ |
| 21 | |
| 22 | /** |
| 23 | * |
| 24 | */ |
| 25 | |
| 26 | |
| 27 | /** |
| 28 | * |
| 29 | */ |
| 30 | lua_State *init_script(); |
| 31 | |
| 32 | void register_cfunctions(lua_State *lua); |
| 33 | int load_script(lua_State *lua,char *filename); |
| 34 | |
| 35 | void run_script(lua_State *lua); |
| 36 | void done_script(lua_State *lua); |
| 37 | |
| 38 | |
| 39 | extern gboolean devilspie2_debug; |
| 40 | extern gboolean devilspie2_emulate; |
| 41 | |
| 42 | extern lua_State *global_lua_state; |
| 43 | |
| 44 | #endif /*__HEADER_SCRIPT_*/ |