summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author <rob.taylor@collabora.co.uk>2006-01-16 03:40:38 +0000
committer <rob.taylor@collabora.co.uk>2006-01-16 03:40:38 +0000
commite828f40509e02d41265d417946b0876f3390a601 (patch)
treeecdaa40f215442139466eedade551ae7dc63ee4c /src
parent453e0228c80e7414e194e9e65937c32869078703 (diff)
1st bits of implementation of channel handling
Diffstat (limited to 'src')
-rw-r--r--src/voip-engine.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/voip-engine.c b/src/voip-engine.c
index 7b025e9..488f608 100644
--- a/src/voip-engine.c
+++ b/src/voip-engine.c
@@ -26,6 +26,11 @@
#include "voip-engine-signals-marshal.h"
#include "voip-engine-glue.h"
+#include "common/telepathy-constants.h"
+#include "common/telepathy-errors.h"
+
+
+static gboolean handling_channel = FALSE;
G_DEFINE_TYPE(VoipEngine, voip_engine, G_TYPE_OBJECT)
@@ -115,6 +120,13 @@ voip_engine_finalize (GObject *object)
*/
gboolean voip_engine_handle_channel (VoipEngine *obj, const gchar * bus_name, const gchar * connection, const gchar * channel_type, const gchar * channel, guint handle_type, guint handle, GError **error)
{
+ if (handling_channel)
+ {
+ *error = g_error_new (TELEPATHY_ERRORS, NotAvailable,
+ "VoIP Engine is already handling a channel");
+
+ return FALSE;
+ }
return TRUE;
}