summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2011-08-29 17:46:58 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2011-08-30 22:03:28 -0400
commit8569bab0c49f88e397aebc9fcf2d045a21b5be75 (patch)
tree1400a9d255c396ecc27ae68af07e404943019510
parent81176c13d19530ac37401e7b9e597ebfbd2a2904 (diff)
Announce the camera-v1 caps bundle so that the Google UIs put a little camera for us
https://bugs.freedesktop.org/show_bug.cgi?id=40471
-rw-r--r--src/capabilities.h1
-rw-r--r--src/connection.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/capabilities.h b/src/capabilities.h
index 811f1137..8e7d1a03 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 ad474d27..5d5e35f6 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -2322,8 +2322,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);