Charlotte Meyer
1d073cf0ea
For now only kiwmi.on, kiwmi.quit, kiwmi.view_under_cursor, kiwmi_view:close, lua_callback:cancel, and cursor_button events.
24 lines
544 B
C
24 lines
544 B
C
/* Copyright (c), Charlotte Meyer <dev@buffet.sh>
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#ifndef KIWMI_LUAK_H
|
|
#define KIWMI_LUAK_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <lua.h>
|
|
|
|
#include "server.h"
|
|
|
|
struct kiwmi_lua {
|
|
lua_State *L;
|
|
};
|
|
|
|
bool luaK_init(struct kiwmi_server *server);
|
|
bool luaK_dofile(struct kiwmi_lua *lua, const char *config_path);
|
|
|
|
#endif /* KIWMI_LUAK_H */
|