Displaying 1 result from an estimated 1 matches for "g_module_symbol".
2007 Nov 06
1
src/plugin.c
...)
return FALSE;
- module = g_module_open (PLUGIN_DIR G_DIR_SEPARATOR_S "libswfdecmozilla." G_MODULE_SUFFIX, 0);
+ module = g_module_open (PLUGIN_FILE, 0);
if (module == 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;...