summaryrefslogtreecommitdiff
path: root/src/plugin-loader.c
diff options
context:
space:
mode:
authorSiraj Razick <siraj.razick@collabora.co.uk>2012-01-13 11:32:48 -0500
committerSiraj Razick <siraj.razick@collabora.co.uk>2012-01-25 15:15:34 -0500
commitd3beae79aadab2e0adfc206082068fc6689ff290 (patch)
treeb6b106f0716801a0aa48900627668b2ab7700e7c /src/plugin-loader.c
parent9ee76cdc02c550850c8490ddc97dc0c0fa24c38a (diff)
fd.o#44649 - Gabble plugin API symbols should be factored out to a separate library
This patch refactors gabble connection by introducing a new GInterface which the plugins will link agaist. And GabbleConnection implements the new Interface. https://bugs.freedesktop.org/show_bug.cgi?id=44649
Diffstat (limited to 'src/plugin-loader.c')
-rw-r--r--src/plugin-loader.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/plugin-loader.c b/src/plugin-loader.c
index 7e016b899..d5a451fec 100644
--- a/src/plugin-loader.c
+++ b/src/plugin-loader.c
@@ -290,8 +290,10 @@ gabble_plugin_loader_create_sidecar (
GSimpleAsyncResult *res = g_simple_async_result_new (G_OBJECT (self),
callback, user_data, gabble_plugin_loader_create_sidecar);
- gabble_plugin_create_sidecar_async (p, sidecar_interface, connection, session,
- create_sidecar_cb, res);
+ GabblePluginConnection *gabble_conn =
+ GABBLE_PLUGIN_CONNECTION (connection);
+ gabble_plugin_create_sidecar_async (p, sidecar_interface,
+ gabble_conn, session, create_sidecar_cb, res);
return;
}
}
@@ -383,6 +385,7 @@ copy_to_other_array (gpointer data,
GPtrArray *
gabble_plugin_loader_create_channel_managers (
GabblePluginLoader *self,
+ GabblePluginConnection *plugin_connection,
TpBaseConnection *connection)
{
GPtrArray *out = g_ptr_array_new ();
@@ -393,7 +396,8 @@ gabble_plugin_loader_create_channel_managers (
GabblePlugin *plugin = g_ptr_array_index (self->priv->plugins, i);
GPtrArray *managers;
- managers = gabble_plugin_create_channel_managers (plugin, connection);
+ managers = gabble_plugin_create_channel_managers (plugin,
+ plugin_connection, connection);
if (managers == NULL)
continue;