/usr/share/doc/libtelepathy-glib-doc/examples/cm/echo-message-parts/main.c is in libtelepathy-glib-doc 0.24.1-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*
* main.c - entry point for an example Telepathy connection manager
*
* Copyright (C) 2007 Collabora Ltd. <http://www.collabora.co.uk/>
* Copyright (C) 2007 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_ECHO_2_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-echo-2",
VERSION, construct_cm, argc, argv);
}
|