From ff608ab0a8baa050184c3d21b3db0e5956e2539b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Mon, 29 Aug 2011 17:46:58 -0400 Subject: [PATCH] Announce the camera-v1 bundle so that the Google UIs put a little camera for us --- src/capabilities.h | 1 + src/connection.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/capabilities.h b/src/capabilities.h index 811f113..8e7d1a0 100644 --- a/src/capabilities.h +++ b/src/capabilities.h @@ -57,6 +57,7 @@ const GabbleCapabilitySet *gabble_capabilities_get_olpc_notify (void); #define BUNDLE_SHARE_V1 "share-v1" #define BUNDLE_VOICE_V1 "voice-v1" #define BUNDLE_VIDEO_V1 "video-v1" +#define BUNDLE_CAMERA_V1 "camera-v1" #define BUNDLE_PMUC_V1 "pmuc-v1" const GabbleCapabilitySet *gabble_capabilities_get_bundle_share_v1 (void); diff --git a/src/connection.c b/src/connection.c index 45495d7..cab20bd 100644 --- a/src/connection.c +++ b/src/connection.c @@ -2271,8 +2271,10 @@ gabble_connection_fill_in_caps (GabbleConnection *self, if (voice_v1) g_string_append (ext, " " BUNDLE_VOICE_V1); - if (video_v1) + if (video_v1) { g_string_append (ext, " " BUNDLE_VIDEO_V1); + g_string_append (ext, " " BUNDLE_CAMERA_V1); + } lm_message_node_set_attribute (node, "ext", ext->str); g_string_free (ext, TRUE); -- 1.7.6