GIOModule: Use unique names for load/unload symbols

GIO modules should include their name into their exported symbols to
make them unique. This avoids symbol clash when building modules
statically.

extract_name() function is copied from GStreamer which recently
switched to the same symbol naming scheme.

https://bugzilla.gnome.org/show_bug.cgi?id=684282
This commit is contained in:
Xavier Claessens
2017-11-30 15:36:21 -05:00
parent e91c118418
commit 7f69b828fc
7 changed files with 153 additions and 9 deletions

View File

@@ -41,6 +41,9 @@ GType _g_io_module_get_default_type (const gchar *extension_point,
void *_g_io_win32_get_module (void);
#endif
gchar *_g_io_module_extract_name (const char *filename);
G_END_DECLS
#endif /* __G_IO_MODULE_PRIV_H__ */