[next] telepathy-haze: protocol: get_avatar_details() now returns a boolean

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Thu May 15 04:51:55 PDT 2014


Module: telepathy-haze
Branch: next
Commit: b2ff86741c744f149647464c6c02c14f0b9fbc6c
URL:    http://cgit.freedesktop.org/telepathy/telepathy-haze/commit/?id=b2ff86741c744f149647464c6c02c14f0b9fbc6c

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Thu May 15 11:21:23 2014 +0200

protocol: get_avatar_details() now returns a boolean

---

 src/protocol.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/protocol.c b/src/protocol.c
index 9781fab..5216bf1 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -1002,7 +1002,7 @@ haze_protocol_dup_authentication_types (TpBaseProtocol *base)
   return g_strdupv ((GStrv) types);
 }
 
-static void
+static gboolean
 haze_protocol_get_avatar_details (TpBaseProtocol *base,
     GStrv *supported_mime_types,
     guint *min_height,
@@ -1029,12 +1029,14 @@ haze_protocol_get_avatar_details (TpBaseProtocol *base,
       *max_height = 0;
       *max_width = 0;
       *max_bytes = 0;
-      return;
+      return FALSE;
     }
 
   haze_connection_get_icon_spec_requirements (icon_spec, supported_mime_types,
       min_height, min_width, rec_height, rec_width, max_height, max_width,
       max_bytes);
+
+  return TRUE;
 }
 
 static void



More information about the telepathy-commits mailing list