~darkxst/ubuntu/quantal/telepathy-logger/lp1049210

« back to all changes in this revision

Viewing changes to src/telepathy-logger.c

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2011-04-01 10:10:05 UTC
  • mto: (14.1.1 experimental) (19.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20110401101005-cu311xa4s0esdhpv
Tags: upstream-0.2.8
ImportĀ upstreamĀ versionĀ 0.2.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
1
/*
3
2
 * Copyright (C) 2009 Collabora Ltd.
4
3
 *
30
29
#include <telepathy-logger/observer-internal.h>
31
30
#include <telepathy-logger/dbus-service-internal.h>
32
31
 
 
32
#ifdef ENABLE_CALL
 
33
#include <telepathy-logger/call-channel-internal.h>
 
34
#include <telepathy-logger/streamed-media-channel-internal.h>
 
35
#endif /* ENABLE_CALL */
 
36
 
33
37
#define DEBUG_FLAG TPL_DEBUG_MAIN
34
38
#include <telepathy-logger/debug-internal.h>
35
39
 
168
172
  _tpl_channel_factory_init ();
169
173
 
170
174
  DEBUG ("Initialising TPL Channel Factory");
 
175
 
171
176
  _tpl_channel_factory_add ("org.freedesktop.Telepathy.Channel.Type.Text",
172
177
      (TplChannelConstructor) _tpl_text_channel_new);
173
178
  DEBUG ("- TplTextChannel registered.");
174
179
 
 
180
#ifdef ENABLE_CALL
 
181
  _tpl_channel_factory_add ("org.freedesktop.Telepathy.Channel.Type.StreamedMedia",
 
182
      (TplChannelConstructor) _tpl_streamed_media_channel_new);
 
183
  DEBUG ("- TplStreamedMediaChannel registered.");
 
184
 
 
185
  _tpl_channel_factory_add ("org.freedesktop.Telepathy.Channel.Type.Call.DRAFT",
 
186
      (TplChannelConstructor) _tpl_call_channel_new);
 
187
  DEBUG ("- TplCallChannel registered.");
 
188
#endif /* ENABLE_CALL */
 
189
 
175
190
  observer = _tpl_observer_new ();
176
191
  DEBUG ("Registering channel factory into TplObserver");
177
192
  _tpl_observer_set_channel_factory (observer, _tpl_channel_factory_build);