[Telepathy-commits] [telepathy-gabble/master] private-tubes-factory: use gabble_tube_stream_channel_allowed_properties instead of our own copy of it

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Feb 3 02:27:24 PST 2009


---
 src/private-tubes-factory.c |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/src/private-tubes-factory.c b/src/private-tubes-factory.c
index 798620e..9ff8112 100644
--- a/src/private-tubes-factory.c
+++ b/src/private-tubes-factory.c
@@ -45,6 +45,7 @@
 #include "namespaces.h"
 #include "presence-cache.h"
 #include "tubes-channel.h"
+#include "tube-stream.h"
 #include "util.h"
 
 static GabbleTubesChannel *new_tubes_channel (GabblePrivateTubesFactory *fac,
@@ -131,13 +132,7 @@ static const gchar * const old_tubes_channel_allowed_properties[] = {
     TP_IFACE_CHANNEL ".TargetID",
     NULL
 };
-static const gchar * const stream_tube_channel_allowed_properties[] = {
-    TP_IFACE_CHANNEL ".TargetHandle",
-    TP_IFACE_CHANNEL ".TargetID",
-    GABBLE_IFACE_CHANNEL_INTERFACE_TUBE ".Parameters",
-    GABBLE_IFACE_CHANNEL_TYPE_STREAM_TUBE ".Service",
-    NULL
-};
+/* TODO: move to tube-dbus.h */
 static const gchar * const dbus_tube_channel_allowed_properties[] = {
     TP_IFACE_CHANNEL ".TargetHandle",
     TP_IFACE_CHANNEL ".TargetID",
@@ -1127,7 +1122,8 @@ gabble_private_tubes_factory_foreach_channel_class (
   g_hash_table_insert (table, TP_IFACE_CHANNEL ".TargetHandleType",
       value);
 
-  func (manager, table, stream_tube_channel_allowed_properties, user_data);
+  func (manager, table, gabble_tube_stream_channel_allowed_properties,
+      user_data);
 
   g_hash_table_destroy (table);
 
@@ -1198,7 +1194,7 @@ gabble_private_tubes_factory_requestotron (GabblePrivateTubesFactory *self,
 
       if (tp_channel_manager_asv_has_unknown_properties (request_properties,
               tubes_channel_fixed_properties,
-              stream_tube_channel_allowed_properties,
+              gabble_tube_stream_channel_allowed_properties,
               &error))
         goto error;
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list