From 45861c192761b7059a6ffd4b6daea2ebcdd82642 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 30 Oct 2014 19:36:25 -0400 Subject: Enable building static FsPlugins This required change FS_INIT_PLUGIN() macro. It's now taking name and type argumenet. This is a slight API break, but there never existed any external plugins. Also, already built plugins should not be affected since the symbol remains the same. Note also that plugin are no longer unloadable, it was already not well supported. Instead of adding loads of if, we simply register the module types as static (just like GStreamer does). To register static plugin, you can declare it's registration function using FS_PLUGIN_STATIC_DECLARE(name), and then in your code call the function using FS_PLUGIN_STATIC_REGISTER(name). https://bugs.freedesktop.org/show_bug.cgi?id=89287 --- transmitters/shm/fs-shm-stream-transmitter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'transmitters/shm/fs-shm-stream-transmitter.c') diff --git a/transmitters/shm/fs-shm-stream-transmitter.c b/transmitters/shm/fs-shm-stream-transmitter.c index 796e898b..e745480b 100644 --- a/transmitters/shm/fs-shm-stream-transmitter.c +++ b/transmitters/shm/fs-shm-stream-transmitter.c @@ -176,7 +176,7 @@ fs_shm_stream_transmitter_get_type (void) } GType -fs_shm_stream_transmitter_register_type (FsPlugin *module) +fs_shm_stream_transmitter_register_type (FsPlugin *module G_GNUC_UNUSED) { static const GTypeInfo info = { sizeof (FsShmStreamTransmitterClass), @@ -190,8 +190,8 @@ fs_shm_stream_transmitter_register_type (FsPlugin *module) (GInstanceInitFunc) fs_shm_stream_transmitter_init }; - type = g_type_module_register_type (G_TYPE_MODULE (module), - FS_TYPE_STREAM_TRANSMITTER, "FsShmStreamTransmitter", &info, 0); + type = g_type_register_static (FS_TYPE_STREAM_TRANSMITTER, + "FsShmStreamTransmitter", &info, 0); return type; } -- cgit v1.2.1