2
Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
4
This program is free software; you can redistribute it and/or
5
modify it under the terms of the GNU General Public License as
6
published by the Free Software Foundation; version 2 of the
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22
1
#ifndef _LUA_SCOPE_H_
23
2
#define _LUA_SCOPE_H_
27
7
#ifdef HAVE_CONFIG_H
35
#include "chassis-exports.h"
47
CHASSIS_API lua_scope *lua_scope_init(void) G_GNUC_DEPRECATED;
48
CHASSIS_API lua_scope *lua_scope_new(void);
49
CHASSIS_API void lua_scope_free(lua_scope *sc);
51
CHASSIS_API void lua_scope_get(lua_scope *sc, const char* pos);
52
CHASSIS_API void lua_scope_release(lua_scope *sc, const char* pos);
54
#define LOCK_LUA(sc) \
55
lua_scope_get(sc, G_STRLOC);
57
#define UNLOCK_LUA(sc) \
58
lua_scope_release(sc, G_STRLOC);
61
CHASSIS_API lua_State *lua_scope_load_script(lua_scope *sc, const gchar *name);
62
CHASSIS_API void proxy_lua_dumpstack_verbose(lua_State *L);
20
lua_scope *lua_scope_init(void);
21
void lua_scope_free(lua_scope *sc);
23
void lua_scope_get(lua_scope *sc);
24
void lua_scope_release(lua_scope *sc);
26
lua_State *lua_scope_load_script(lua_scope *sc, const gchar *name);