diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2008-11-22 00:14:03 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-22 00:14:03 +0800 |
commit | 11fe41e36fc1d1cbd649dac0eb982696e0619776 (patch) | |
tree | 39ed010da1698f955de87288f523ef9ffd0cd365 /libempathy/empathy-dispatcher.c | |
parent | 56f3b6e362203b337042146a20523b74f45add62 (diff) | |
download | gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.tar gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.tar.gz gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.tar.bz2 gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.tar.lz gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.tar.xz gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.tar.zst gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.zip |
Added start of handling new incoming file channels. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1742
Diffstat (limited to 'libempathy/empathy-dispatcher.c')
-rw-r--r-- | libempathy/empathy-dispatcher.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ -371,6 +371,15 @@ dispatcher_tubes_handle_channel (EmpathyDispatcher *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, gint code, @@ -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) && |