kiwmi/include/luak.h
Charlotte Meyer 1d073cf0ea Add Lua library
For now only kiwmi.on, kiwmi.quit, kiwmi.view_under_cursor,
kiwmi_view:close, lua_callback:cancel, and cursor_button events.
2019-12-30 23:33:07 +00:00

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 */