summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-02-07 13:48:42 +0000
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-02-07 13:52:48 +0000
commite343336ffb798eccfae8b3e5f0fdb5ab6b294e6d (patch)
treecb8fd642e162536cecf26f7ab52d4158ccacbbbf /plugins
parent5700f08ca7b05df559a0829c04d7874e3c4d86b9 (diff)
plugin: add initialize method to give access to the CM
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/test.c b/plugins/test.c
index 24fdd98e..80d5646f 100644
--- a/plugins/test.c
+++ b/plugins/test.c
@@ -26,6 +26,13 @@ test_plugin_class_init (TestPluginClass *klass)
{
}
+static void
+initialize (SalutPlugin *plugin,
+ TpBaseConnectionManager *connection_manager)
+{
+ DEBUG ("%p on connection manager %p", plugin, connection_manager);
+}
+
static GPtrArray *
create_channel_managers (SalutPlugin *plugin,
TpBaseConnection *connection)
@@ -46,6 +53,7 @@ plugin_iface_init (
iface->name = "Salut test plugin";
iface->version = PACKAGE_VERSION;
+ iface->initialize = initialize;
iface->create_channel_managers = create_channel_managers;
}