summaryrefslogtreecommitdiff
path: root/src/telepathy-rakia.c
diff options
context:
space:
mode:
authorDavid Laban <david.laban@collabora.co.uk>2011-02-12 10:03:25 +0000
committerDavid Laban <david.laban@collabora.co.uk>2011-02-12 11:02:57 +0000
commit8dcddb61752cfa140df30c94b54bd02684419323 (patch)
tree5ba95bbfdafdfd8152d783c180bfd8c49499fd7e /src/telepathy-rakia.c
parentada52bcb3064a5a7fa0e75038f4365b45376518c (diff)
Rename project to telepathy-rakia
For the curious, these are the commands you need: git clean -d git mv tpsip-extensions extensions git mv tpsip rakia sed -i \ -e 's/libtpsip-extensions.la/librakia-extensions.la/g' \ -e 's/libtpsip_extensions_la/librakia_extensions_la/g' \ -e 's/tpsip-extensions/extensions/g' \ -e 's/sofiasip/rakia/g' \ -e 's/tpsip/rakia/g' \ -e 's/Tpsip/Rakia/g' \ -e 's/SOFIASIP/RAKIA/g' \ */*.[ch] .gitignore configure.ac $(find -name 'Makefile.am' ; find -name '*.py' ; find -name '*.in') git mv ./docs/telepathy-sofiasip.8.in ./docs/telepathy-rakia.8.in git mv ./src/telepathy-sofiasip.c ./src/telepathy-rakia.c git mv ./data/org.freedesktop.Telepathy.ConnectionManager.sofiasip.service.in \ ./data/org.freedesktop.Telepathy.ConnectionManager.rakia.service.in git mv ./tests/twisted/tools/sofiasip.service.in \ ./tests/twisted/tools/rakia.service.in ./autogen.sh && make distcheck
Diffstat (limited to 'src/telepathy-rakia.c')
-rw-r--r--src/telepathy-rakia.c73
1 files changed, 73 insertions, 0 deletions
diff --git a/src/telepathy-rakia.c b/src/telepathy-rakia.c
new file mode 100644
index 0000000..76dffe7
--- /dev/null
+++ b/src/telepathy-rakia.c
@@ -0,0 +1,73 @@
+/*
+ * sip-connection.c - Source for RakiaConnection
+ * Copyright (C) 2005 Collabora Ltd.
+ * Copyright (C) 2005-2008, 2010 Nokia Corporation
+ * @author Kai Vehmanen <first.surname@nokia.com>
+ * @author Martti Mela <first.surname@nokia.com>
+ * @author Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
+ *
+ * Based on telepathy-gabble implementation (gabble-connection).
+ * @author See gabble.c
+ *
+ * This work is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This work is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this work; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "config.h"
+
+#include "rakia/debug.h"
+
+#include "sip-connection-manager.h"
+#include <telepathy-glib/run.h>
+#include <telepathy-glib/debug.h>
+
+static TpBaseConnectionManager *
+construct_cm (void)
+{
+ return (TpBaseConnectionManager *)g_object_new (
+ TPSIP_TYPE_CONNECTION_MANAGER, NULL);
+}
+
+
+int
+main (int argc, char** argv)
+{
+ int status;
+ gpointer logdata;
+ guint fatal_mask;
+
+ fatal_mask = g_log_set_always_fatal (G_LOG_FATAL_MASK);
+ fatal_mask |= G_LOG_LEVEL_CRITICAL;
+ g_log_set_always_fatal (fatal_mask);
+
+#ifdef ENABLE_DEBUG
+ rakia_debug_set_flags_from_env ();
+#endif
+
+ if (g_getenv ("TPSIP_PERSIST") || g_getenv ("RAKIA_PERSIST"))
+ {
+ tp_debug_set_persistent (TRUE);
+ }
+
+ tp_debug_divert_messages (g_getenv ("TPSIP_LOGFILE"));
+
+ logdata = rakia_sofia_log_init ();
+
+ status = tp_run_connection_manager ("telepathy-rakia", VERSION,
+ construct_cm, argc, argv);
+
+ rakia_sofia_log_finalize (logdata);
+
+ return status;
+}