[Telepathy-commits] [telepathy-gabble/master] Use DBUS_TYPE_G_UINT_ARRAY instead of G_POINTER in presences-updated

Sjoerd Simons sjoerd at luon.net
Tue Aug 19 10:54:10 PDT 2008


20080724125237-93b9a-6ea2bb5cb3a2a009a1b1407de4d8673bb5b2858d.gz
---
 src/presence-cache.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/presence-cache.c b/src/presence-cache.c
index 8417e85..401f8ba 100644
--- a/src/presence-cache.c
+++ b/src/presence-cache.c
@@ -24,6 +24,13 @@
 #include <stdlib.h>
 #include <string.h>
 
+/* When five DIFFERENT guys report the same caps for a given bundle, it'll
+ * be enough. But if only ONE guy use the verification string (XEP-0115 v1.5),
+ * it'll be enough too.
+ */
+#define CAPABILITY_BUNDLE_ENOUGH_TRUST 5
+#define DEBUG_FLAG GABBLE_DEBUG_PRESENCE
+
 #include <telepathy-glib/intset.h>
 
 #define DEBUG_FLAG GABBLE_DEBUG_PRESENCE
@@ -289,7 +296,7 @@ gabble_presence_cache_class_init (GabblePresenceCacheClass *klass)
     G_SIGNAL_RUN_LAST,
     0,
     NULL, NULL,
-    g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER);
+    g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, DBUS_TYPE_G_UINT_ARRAY);
   signals[NICKNAME_UPDATE] = g_signal_new (
     "nickname-update",
     G_TYPE_FROM_CLASS (klass),
-- 
1.5.6.3




More information about the Telepathy-commits mailing list