2022-04-06 18:11:17 +03:00
|
|
|
/* WirePlumber
|
|
|
|
|
*
|
|
|
|
|
* Copyright © 2022 Collabora Ltd.
|
|
|
|
|
* @author George Kiagiadakis <george.kiagiadakis@collabora.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __MODULE_LUA_SCRIPTING_SCRIPT_H__
|
|
|
|
|
#define __MODULE_LUA_SCRIPTING_SCRIPT_H__
|
|
|
|
|
|
|
|
|
|
#include <wp/wp.h>
|
|
|
|
|
#include <wplua/wplua.h>
|
|
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
#define WP_TYPE_LUA_SCRIPT (wp_lua_script_get_type ())
|
|
|
|
|
G_DECLARE_FINAL_TYPE (WpLuaScript, wp_lua_script, WP, LUA_SCRIPT, WpPlugin)
|
|
|
|
|
|
2026-05-07 23:15:08 +08:00
|
|
|
/* Clear the internal lua_State pointer to prevent the finalizer from
|
|
|
|
|
* attempting to close the already-destroyed state. Called by the Lua
|
|
|
|
|
* scripting plugin during prepare_shutdown. */
|
|
|
|
|
WP_API
|
|
|
|
|
void wp_lua_script_clear_lua_state (WpLuaScript *self);
|
|
|
|
|
|
2022-04-06 18:11:17 +03:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
|
|
#endif
|