summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-02-03 13:47:18 +0000
committerCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-02-03 13:47:18 +0000
commita68ca09705b73ea229186671e97bcddc76e51866 (patch)
tree9dd9a1be7506598cd6db545411d6b65927d05aba /src
parentb678ca070fbaac25b10f5794215f58771f3c4a25 (diff)
ChannelFactory registration to TplObserver
* added getter/setter for TplChannelFactory to the Observer * added Channel Factory registration phase into src/telepathy-logger.c
Diffstat (limited to 'src')
-rw-r--r--src/telepathy-logger.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/telepathy-logger.c b/src/telepathy-logger.c
index 9820f74..8acb6eb 100644
--- a/src/telepathy-logger.c
+++ b/src/telepathy-logger.c
@@ -27,7 +27,9 @@
static GMainLoop *loop = NULL;
-int main(int argc, char *argv[])
+int
+main(int argc,
+ char *argv[])
{
TplObserver *observer;
GError *error = NULL;
@@ -35,10 +37,13 @@ int main(int argc, char *argv[])
g_type_init ();
tpl_channel_factory_init ();
+ g_debug ("Initialising TPL Channel Factory");
tpl_channel_factory_add ("org.freedesktop.Telepathy.Channel.Type.Text",
(TplChannelConstructor) tpl_channel_text_new);
observer = tpl_observer_new ();
+ g_debug ("Registering channel factory");
+ tpl_observer_set_channel_factory (observer, tpl_channel_factory_build);
if (tpl_observer_register_dbus (observer, &error) == FALSE)
{
g_debug ("Error during D-Bus registration: %s", error->message);