blob: 222c7bb42c76a9e28d5c367e29dd07c46ead88d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*
* main.c - entry point for an example Telepathy connection manager
*
* Copyright © 2007-2009 Collabora Ltd. <http://www.collabora.co.uk/>
* Copyright © 2007-2009 Nokia Corporation
*
* Copying and distribution of this file, with or without modification,
* are permitted in any medium without royalty provided the copyright
* notice and this notice are preserved.
*/
#include "config.h"
#include <telepathy-glib/telepathy-glib.h>
#include "connection-manager.h"
static TpBaseConnectionManager *
construct_cm (void)
{
return (TpBaseConnectionManager *) g_object_new (
EXAMPLE_TYPE_CONTACT_LIST_CONNECTION_MANAGER,
NULL);
}
int
main (int argc,
char **argv)
{
#ifdef ENABLE_DEBUG
tp_debug_divert_messages (g_getenv ("EXAMPLE_CM_LOGFILE"));
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
if (g_getenv ("EXAMPLE_TIMING") != NULL)
g_log_set_default_handler (tp_debug_timestamped_log_handler, NULL);
if (g_getenv ("EXAMPLE_PERSIST") != NULL)
tp_debug_set_persistent (TRUE);
#endif
return tp_run_connection_manager ("telepathy-example-cm-contactlist",
VERSION, construct_cm, argc, argv);
}
|