2
* main.c - entry point for an example Telepathy connection manager
4
* Copyright (C) 2007 Collabora Ltd. <http://www.collabora.co.uk/>
5
* Copyright (C) 2007 Nokia Corporation
7
* Copying and distribution of this file, with or without modification,
8
* are permitted in any medium without royalty provided the copyright
9
* notice and this notice are preserved.
14
#include <telepathy-glib/debug.h>
15
#include <telepathy-glib/run.h>
16
#include "connection-manager.h"
18
static TpBaseConnectionManager *
21
return (TpBaseConnectionManager *) g_object_new (
22
EXAMPLE_TYPE_ECHO_2_CONNECTION_MANAGER,
31
tp_debug_divert_messages (g_getenv ("EXAMPLE_CM_LOGFILE"));
32
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
34
if (g_getenv ("EXAMPLE_TIMING") != NULL)
35
g_log_set_default_handler (tp_debug_timestamped_log_handler, NULL);
37
if (g_getenv ("EXAMPLE_PERSIST") != NULL)
38
tp_debug_set_persistent (TRUE);
41
return tp_run_connection_manager ("telepathy-example-cm-echo-2",
42
VERSION, construct_cm, argc, argv);