diff options
-rw-r--r-- | salut/plugin.h | 3 | ||||
-rw-r--r-- | src/plugin-loader.c | 4 | ||||
-rw-r--r-- | src/plugin.c | 5 |
3 files changed, 8 insertions, 4 deletions
diff --git a/salut/plugin.h b/salut/plugin.h index 1c199973..fe45ddf6 100644 --- a/salut/plugin.h +++ b/salut/plugin.h @@ -156,7 +156,8 @@ SalutSidecar * salut_plugin_create_sidecar_finish ( void salut_plugin_initialize ( SalutPlugin *plugin, - TpBaseConnectionManager *connection_manager); + TpBaseConnectionManager *connection_manager, + SalutCreateProtocolImpl proto_ctor); GPtrArray * salut_plugin_create_channel_managers ( SalutPlugin *plugin, diff --git a/src/plugin-loader.c b/src/plugin-loader.c index 928d2a0b..f19d289f 100644 --- a/src/plugin-loader.c +++ b/src/plugin-loader.c @@ -33,6 +33,7 @@ #define DEBUG_FLAG DEBUG_PLUGIN #include "debug.h" #include "salut/plugin.h" +#include "salut/protocol.h" G_DEFINE_TYPE(SalutPluginLoader, salut_plugin_loader, @@ -328,7 +329,8 @@ salut_plugin_loader_initialize (SalutPluginLoader *self, { SalutPlugin *plugin = g_ptr_array_index (self->priv->plugins, i); - salut_plugin_initialize (plugin, connection_manager); + salut_plugin_initialize (plugin, connection_manager, + salut_protocol_new); } } diff --git a/src/plugin.c b/src/plugin.c index 5d5f7577..eade9599 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -125,13 +125,14 @@ salut_plugin_create_sidecar_finish ( void salut_plugin_initialize (SalutPlugin *plugin, - TpBaseConnectionManager *connection_manager) + TpBaseConnectionManager *connection_manager, + SalutCreateProtocolImpl proto_ctor) { SalutPluginInterface *iface = SALUT_PLUGIN_GET_INTERFACE (plugin); SalutPluginInitializeImpl func = iface->initialize; if (func != NULL) - func (plugin, connection_manager, salut_protocol_new); + func (plugin, connection_manager, proto_ctor); } GPtrArray * |