Mercurial > pidgin.yaz
comparison libpurple/media.c @ 29524:c52dbc5503d0
Made the GLib flags structure for PurpleMediaCaps.
author | maiku@pidgin.im |
---|---|
date | Tue, 20 Oct 2009 00:10:14 +0000 |
parents | bb06f05c7159 |
children | 7819d3819f4c |
comparison
equal
deleted
inserted
replaced
29523:ecd2136ff818 | 29524:c52dbc5503d0 |
---|---|
283 { PURPLE_MEDIA_INFO_UNHOLD, | 283 { PURPLE_MEDIA_INFO_UNHOLD, |
284 "PURPLE_MEDIA_INFO_HOLD", "unhold" }, | 284 "PURPLE_MEDIA_INFO_HOLD", "unhold" }, |
285 { 0, NULL, NULL } | 285 { 0, NULL, NULL } |
286 }; | 286 }; |
287 type = g_enum_register_static("PurpleMediaInfoType", values); | 287 type = g_enum_register_static("PurpleMediaInfoType", values); |
288 } | |
289 return type; | |
290 } | |
291 | |
292 GType | |
293 purple_media_caps_get_type() | |
294 { | |
295 static GType type = 0; | |
296 if (type == 0) { | |
297 static const GEnumValue values[] = { | |
298 { PURPLE_MEDIA_CAPS_NONE, | |
299 "PURPLE_MEDIA_CAPS_NONE", "none" }, | |
300 { PURPLE_MEDIA_CAPS_AUDIO, | |
301 "PURPLE_MEDIA_CAPS_AUDIO", "audio" }, | |
302 { PURPLE_MEDIA_CAPS_AUDIO_SINGLE_DIRECTION, | |
303 "PURPLE_MEDIA_CAPS_AUDIO_SINGLE_DIRECTION", | |
304 "audio-single-direction" }, | |
305 { PURPLE_MEDIA_CAPS_VIDEO, | |
306 "PURPLE_MEDIA_CAPS_VIDEO", "video" }, | |
307 { PURPLE_MEDIA_CAPS_VIDEO_SINGLE_DIRECTION, | |
308 "PURPLE_MEDIA_CAPS_VIDEO_SINGLE_DIRECTION", | |
309 "video-single-direction" }, | |
310 { PURPLE_MEDIA_CAPS_AUDIO_VIDEO, | |
311 "PURPLE_MEDIA_CAPS_AUDIO_VIDEO", | |
312 "audio-video" }, | |
313 { PURPLE_MEDIA_CAPS_MODIFY_SESSION, | |
314 "PURPLE_MEDIA_CAPS_MODIFY_SESSION", | |
315 "modify-session" }, | |
316 { PURPLE_MEDIA_CAPS_CHANGE_DIRECTION, | |
317 "PURPLE_MEDIA_CAPS_CHANGE_DIRECTION", | |
318 "change-direction" }, | |
319 { 0, NULL, NULL } | |
320 }; | |
321 type = g_enum_register_static("PurpleMediaCaps", values); | |
288 } | 322 } |
289 return type; | 323 return type; |
290 } | 324 } |
291 | 325 |
292 #ifdef USE_VV | 326 #ifdef USE_VV |