From e828f40509e02d41265d417946b0876f3390a601 Mon Sep 17 00:00:00 2001 From: Date: Mon, 16 Jan 2006 03:40:38 +0000 Subject: 1st bits of implementation of channel handling 20060116034038-25e70-432ec20bd091093ccadb8305d048eef91a39fe0f.gz --- src/voip-engine.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3