kiwmi/include/luak/kiwmi_lua_callback.h

28 lines
691 B
C
Raw Normal View History

2020-01-02 00:11:46 +00:00
/* 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_KIWMI_LUA_CALLBACK_H
#define KIWMI_LUAK_KIWMI_LUA_CALLBACK_H
#include <lua.h>
#include "luak/luak.h"
struct kiwmi_lua_callback {
struct wl_list link;
struct kiwmi_server *server;
int callback_ref;
2020-02-08 15:08:37 +00:00
union {
struct wl_event_source *event_source;
struct wl_listener listener;
};
2020-01-02 00:11:46 +00:00
};
int luaK_kiwmi_lua_callback_new(lua_State *L);
#endif /* KIWMI_LUAK_KIWMI_LUA_CALLBACK_H */