search for: g_module_close

Displaying 2 results from an estimated 2 matches for "g_module_close".

Did you mean: lt_module_close
2007 Nov 06
1
src/plugin.c
...dule == NULL) return FALSE; + /* now load this function name to be sure it we've loaded ourselves */ + if (!g_module_symbol (module, "swfdec_mozilla_make_sure_this_thing_stays_in_memory", &check) || + check != swfdec_mozilla_make_sure_this_thing_stays_in_memory) { + g_module_close (module); + return FALSE; + } g_module_make_resident (module); g_module_close (module); + inited = TRUE; return TRUE; } @@ -157,8 +166,12 @@ plugin_new (NPMIMEType mime_type, NPP instance, if (instance == NULL) return NPERR_INVALID_INSTANCE_ERROR; - if (!make_sure_this_t...
2007 Nov 06
0
configure.ac src/Makefile.am src/plugin.c
...ule; + + if (inited) + return TRUE; + inited = TRUE; + if (!g_module_supported ()) + return FALSE; + module = g_module_open (PLUGIN_DIR G_DIR_SEPARATOR_S "libswfdecmozilla." G_MODULE_SUFFIX, 0); + if (module == NULL) + return FALSE; + g_module_make_resident (module); + g_module_close (module); + return TRUE; +} + static NPError plugin_new (NPMIMEType mime_type, NPP instance, uint16_t mode, int16_t argc, char *argn[], char *argv[], @@ -138,9 +157,8 @@ plugin_new (NPMIMEType mime_type, NPP instance, if (instance == NULL) return NPERR_INVALID_INSTANCE_ERROR; - i...