From 11fe41e36fc1d1cbd649dac0eb982696e0619776 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 21 Nov 2008 16:14:03 +0000 Subject: Added start of handling new incoming file channels. (Jonny Lamb) Signed-off-by: Jonny Lamb svn path=/trunk/; revision=1742 --- libempathy/empathy-dispatcher.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c index 5f26eeeed..2b965d417 100644 --- a/libempathy/empathy-dispatcher.c +++ b/libempathy/empathy-dispatcher.c @@ -370,6 +370,15 @@ dispatcher_tubes_handle_channel (EmpathyDispatcher *dispatcher, G_OBJECT (dispatcher)); } +static void +dispatcher_file_handle_channel (EmpathyDispatcher *dispatcher, + TpChannel *channel) +{ + DEBUG ("New file channel"); + + /* handle new file channel here */ +} + static void dispatcher_connection_invalidated_cb (TpConnection *connection, guint domain, @@ -473,6 +482,8 @@ dispatcher_connection_new_channel_cb (TpConnection *connection, if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TUBES)) { dispatcher_tubes_handle_channel (dispatcher, channel); + } else if (!tp_strdiff (channel_type, EMP_IFACE_CHANNEL_TYPE_FILE)) { + dispatcher_file_handle_channel (dispatcher, channel); } if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TEXT) && -- cgit v1.2.3