Debian Codegraph @

modules/module-lua-scripting/wplua/private.h

raw
1 /* WirePlumber
2 *
3 * Copyright © 2020 Collabora Ltd.
4 * @author George Kiagiadakis <[email protected]>
5 *
6 * SPDX-License-Identifier: MIT
7 */
8
9 #ifndef __WPLUA_PRIVATE_H__
10 #define __WPLUA_PRIVATE_H__
11
12 #include "wplua.h"
13
14 G_BEGIN_DECLS
15
16 #define WP_LOCAL_LOG_TOPIC log_topic_wplua
17 WP_LOG_TOPIC_EXTERN (log_topic_wplua)
18
19 /* boxed.c */
20 void _wplua_init_gboxed (lua_State *L);
21
22 /* closure.c */
23 void _wplua_init_closure (lua_State *L);
24
25 /* object.c */
26 void _wplua_init_gobject (lua_State *L);
27
28 /* userdata.c */
29 GValue * _wplua_pushgvalue_userdata (lua_State * L, GType type);
30 GValue * _wplua_togvalue_userdata_named (lua_State *L, int idx, GType type, const char *table_name);
31 GValue * _wplua_togvalue_userdata (lua_State *L, int idx, GType type);
32 gboolean _wplua_isgvalue_userdata (lua_State *L, int idx, GType type);
33 int _wplua_gvalue_userdata___eq_impl (lua_State *L, const char *type);
34 int _wplua_gvalue_userdata___gc (lua_State *L);
35
36 /* wplua.c */
37 int _wplua_pcall (lua_State *L, int nargs, int nret);
38
39 G_END_DECLS
40
41 #endif