summaryrefslogtreecommitdiff
path: root/loaders/lua5.1
diff options
context:
space:
mode:
authorGarrett Regier <garrett.regier@riftio.com>2014-11-16 12:22:33 -0800
committerGarrett Regier <garrett.regier@riftio.com>2014-11-18 10:30:39 -0800
commitcbd4ecf6f2026f9be895efa49ad5dbbb7a1c806c (patch)
treee7936092ac320e1e2d0892ebd21dfa1b1e7e3bf5 /loaders/lua5.1
parent58b36ad61c11bf26f29d7f7df1ee914b2da200e1 (diff)
downloadlibpeas-cbd4ecf6f2026f9be895efa49ad5dbbb7a1c806c.tar.gz
Add nonglobal plugin loader support
This allows multiple threads to each have a PeasEngine and be used without internal locking. It also allows using lua5.1 plugins from multiple threads. https://bugzilla.gnome.org/show_bug.cgi?id=739831
Diffstat (limited to 'loaders/lua5.1')
-rw-r--r--loaders/lua5.1/peas-plugin-loader-lua.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/loaders/lua5.1/peas-plugin-loader-lua.c b/loaders/lua5.1/peas-plugin-loader-lua.c
index 879e82a..fdb4a3f 100644
--- a/loaders/lua5.1/peas-plugin-loader-lua.c
+++ b/loaders/lua5.1/peas-plugin-loader-lua.c
@@ -370,6 +370,12 @@ peas_plugin_loader_lua_initialize (PeasPluginLoader *loader)
return TRUE;
}
+static gboolean
+peas_plugin_loader_lua_is_global (PeasPluginLoader *loader)
+{
+ return FALSE;
+}
+
static void
peas_plugin_loader_lua_init (PeasPluginLoaderLua *lua_loader)
{
@@ -397,6 +403,7 @@ peas_plugin_loader_lua_class_init (PeasPluginLoaderLuaClass *klass)
object_class->finalize = peas_plugin_loader_lua_finalize;
loader_class->initialize = peas_plugin_loader_lua_initialize;
+ loader_class->is_global = peas_plugin_loader_lua_is_global;
loader_class->load = peas_plugin_loader_lua_load;
loader_class->unload = peas_plugin_loader_lua_unload;
loader_class->create_extension = peas_plugin_loader_lua_create_extension;