diff options
author | Alvaro Soliverez <alvaro.soliverez@collabora.co.uk> | 2012-03-14 11:23:42 -0300 |
---|---|---|
committer | Olli Salli <olli.salli@collabora.co.uk> | 2012-03-15 21:59:57 +0200 |
commit | 3d66374eea1d4729859c11fdf4475679f94577fa (patch) | |
tree | 4b7e96aa7ea84b4a5e2838315d9e15c3888a57bc | |
parent | 4e0e2b58a9f839c498536080ebcb3ece286bae32 (diff) |
Fixed salut initialization to use a callback and not calling code that
is in salut core and not in the plugin code
-rw-r--r-- | plugin-base/ytstenut.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin-base/ytstenut.c b/plugin-base/ytstenut.c index fc7e473..b87779f 100644 --- a/plugin-base/ytstenut.c +++ b/plugin-base/ytstenut.c @@ -74,13 +74,14 @@ ytst_plugin_class_init (YtstPluginClass *klass) #ifdef SALUT static void ytstenut_plugin_initialize (SalutPlugin *plugin, - TpBaseConnectionManager *connection_manager) + TpBaseConnectionManager *connection_manager, + SalutCreateProtocolImpl callback) { TpBaseProtocol *protocol; DEBUG ("%p on connection manager %p", plugin, connection_manager); - protocol = salut_protocol_new (G_TYPE_NONE, + protocol = callback (G_TYPE_NONE, "_ytstenut._tcp", "local-ytstenut", "Ytstenut protocol", "im-ytstenut"); tp_base_connection_manager_add_protocol (connection_manager, protocol); } |