kiwmi_lua_callback.h (698B)
1 /* Copyright (c), Niclas Meyer <niclas@countingsort.com> 2 * 3 * This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 5 * You can obtain one at https://mozilla.org/MPL/2.0/. 6 */ 7 8 #ifndef KIWMI_LUAK_KIWMI_LUA_CALLBACK_H 9 #define KIWMI_LUAK_KIWMI_LUA_CALLBACK_H 10 11 #include <lua.h> 12 13 #include "luak/luak.h" 14 15 struct kiwmi_lua_callback { 16 struct wl_list link; 17 struct kiwmi_server *server; 18 int callback_ref; 19 union { 20 struct wl_event_source *event_source; 21 struct wl_listener listener; 22 }; 23 }; 24 25 int luaK_kiwmi_lua_callback_new(lua_State *L); 26 27 #endif /* KIWMI_LUAK_KIWMI_LUA_CALLBACK_H */