search for: g_module_suffix

Displaying 4 results from an estimated 4 matches for "g_module_suffix".

2007 Nov 06
1
src/plugin.c
...n.c @@ -128,22 +128,31 @@ NP_GetValue (void* reserved, NPPVariable var, void* out) return NPERR_NO_ERROR; } -static gboolean -make_sure_this_thing_stays_in_memory (void) +/* This mess is unfortunately necessary */ +#define PLUGIN_FILE PLUGIN_DIR G_DIR_SEPARATOR_S "libswfdecmozilla." G_MODULE_SUFFIX +G_MODULE_EXPORT gboolean +swfdec_mozilla_make_sure_this_thing_stays_in_memory (void) { static gboolean inited = FALSE; GModule *module; + gpointer check; if (inited) return TRUE; - inited = TRUE; if (!g_module_supported ()) return FALSE; - module = g_module_open (PL...
2007 Nov 06
0
configure.ac src/Makefile.am src/plugin.c
...ean +make_sure_this_thing_stays_in_memory (void) +{ + static gboolean inited = FALSE; + GModule *module; + + 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 (NPMIMETy...
2020 Aug 20
0
[PATCH nbdkit 12/13] wrapper: Port the wrapper to run on Windows.
This also defines SOEXT as the extension of shared objects (ie. "so" or "dll"), and uses it everywhere. I assumed this must already be defined by either autoconf or mingw (like OBJEXT) but I cannot find anything except in glib (G_MODULE_SUFFIX). Thanks: Zebediah Figura for helping out with exec vs spawn on Windows. --- configure.ac | 8 +++- common/utils/windows-compat.h | 3 ++ server/fuzzer.c | 2 +- server/main.c | 6 +-- wrapper.c | 72 ++++++++++++++++++++++++++...
2020 Aug 20
15
[PATCH nbdkit 0/13] Port to Windows without using a separate library.
Also available here: https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw-nolib After a lot of work I have made the port to Windows work without using a separate library. Instead, on Windows only, we build an "import library" (library of stubs) which resolves references to nbdkit_* functions in the main program and fixes up the plugin, basically the first technique outlined in