summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-03-24 20:26:52 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-03-25 14:03:04 -0400
commitf1f8673bea54f69765c48aa71b217865562c0095 (patch)
tree750e7684ed57fa2565477d5f2aa9453bf68147ea /src
parentfef67aaec653f183c797597dd081bfc1e00cee6e (diff)
downloadtelepathy-logger-f1f8673bea54f69765c48aa71b217865562c0095.tar.gz
Make Call support conditional to --enable-call
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 57dbd46..a6513ff 100644
--- a/src/telepathy-logger.c
+++ b/src/telepathy-logger.c
@@ -25,12 +25,15 @@
#include <telepathy-glib/telepathy-glib.h>
#include <telepathy-glib/debug-sender.h>
-#include <telepathy-logger/call-channel-internal.h>
#include <telepathy-logger/channel-factory-internal.h>
#include <telepathy-logger/text-channel-internal.h>
#include <telepathy-logger/observer-internal.h>
#include <telepathy-logger/dbus-service-internal.h>
+
+#ifdef ENABLE_CALL
+#include <telepathy-logger/call-channel-internal.h>
#include <telepathy-logger/streamed-media-channel-internal.h>
+#endif /* ENABLE_CALL */
#define DEBUG_FLAG TPL_DEBUG_MAIN
#include <telepathy-logger/debug-internal.h>
@@ -175,6 +178,7 @@ main (int argc,
(TplChannelConstructor) _tpl_text_channel_new);
DEBUG ("- TplTextChannel registered.");
+#ifdef ENABLE_CALL
_tpl_channel_factory_add ("org.freedesktop.Telepathy.Channel.Type.StreamedMedia",
(TplChannelConstructor) _tpl_streamed_media_channel_new);
DEBUG ("- TplStreamedMediaChannel registered.");
@@ -182,6 +186,7 @@ main (int argc,
_tpl_channel_factory_add ("org.freedesktop.Telepathy.Channel.Type.Call.DRAFT",
(TplChannelConstructor) _tpl_call_channel_new);
DEBUG ("- TplCallChannel registered.");
+#endif /* ENABLE_CALL */
observer = _tpl_observer_new ();
DEBUG ("Registering channel factory into TplObserver");