pidgin.next.minor: c0b42b07: Made the GLib flags structure for Purple...
maiku at pidgin.im
maiku at pidgin.im
Mon Oct 19 20:22:00 EDT 2009
-----------------------------------------------------------------
Revision: c0b42b07b9f76c9a26daf4f24fff5228c345a07d
Ancestor: fa239a2e49b49a05b3c8612ea2e2580e7286ac63
Author: maiku at pidgin.im
Date: 2009-10-20T00:10:14
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/c0b42b07b9f76c9a26daf4f24fff5228c345a07d
Modified files:
libpurple/media.c libpurple/media.h
ChangeLog:
Made the GLib flags structure for PurpleMediaCaps.
-------------- next part --------------
============================================================
--- libpurple/media.c 46e5a3d5938b728aedcc8c360f345a4ac2b27b64
+++ libpurple/media.c e2ed8f7b7fa778ccb78d99b10fd4e87b25224a9c
@@ -289,6 +289,40 @@ purple_media_info_type_get_type()
return type;
}
+GType
+purple_media_caps_get_type()
+{
+ static GType type = 0;
+ if (type == 0) {
+ static const GEnumValue values[] = {
+ { PURPLE_MEDIA_CAPS_NONE,
+ "PURPLE_MEDIA_CAPS_NONE", "none" },
+ { PURPLE_MEDIA_CAPS_AUDIO,
+ "PURPLE_MEDIA_CAPS_AUDIO", "audio" },
+ { PURPLE_MEDIA_CAPS_AUDIO_SINGLE_DIRECTION,
+ "PURPLE_MEDIA_CAPS_AUDIO_SINGLE_DIRECTION",
+ "audio-single-direction" },
+ { PURPLE_MEDIA_CAPS_VIDEO,
+ "PURPLE_MEDIA_CAPS_VIDEO", "video" },
+ { PURPLE_MEDIA_CAPS_VIDEO_SINGLE_DIRECTION,
+ "PURPLE_MEDIA_CAPS_VIDEO_SINGLE_DIRECTION",
+ "video-single-direction" },
+ { PURPLE_MEDIA_CAPS_AUDIO_VIDEO,
+ "PURPLE_MEDIA_CAPS_AUDIO_VIDEO",
+ "audio-video" },
+ { PURPLE_MEDIA_CAPS_MODIFY_SESSION,
+ "PURPLE_MEDIA_CAPS_MODIFY_SESSION",
+ "modify-session" },
+ { PURPLE_MEDIA_CAPS_CHANGE_DIRECTION,
+ "PURPLE_MEDIA_CAPS_CHANGE_DIRECTION",
+ "change-direction" },
+ { 0, NULL, NULL }
+ };
+ type = g_enum_register_static("PurpleMediaCaps", values);
+ }
+ return type;
+}
+
#ifdef USE_VV
static void
purple_media_class_init (PurpleMediaClass *klass)
============================================================
--- libpurple/media.h 60dc6a425505471da2a0acef36df24329b0db7d4
+++ libpurple/media.h 671b17f8b4e6d252d8df620a296afa1bd64b69a7
@@ -58,6 +58,7 @@ G_BEGIN_DECLS
#define PURPLE_TYPE_MEDIA_NETWORK_PROTOCOL (purple_media_network_protocol_get_type())
#define PURPLE_MEDIA_TYPE_STATE (purple_media_state_changed_get_type())
#define PURPLE_MEDIA_TYPE_INFO_TYPE (purple_media_info_type_get_type())
+#define PURPLE_MEDIA_TYPE_CAPS (purple_media_caps_get_type())
/** An opaque structure representing a media call. */
typedef struct _PurpleMedia PurpleMedia;
@@ -190,6 +191,15 @@ GType purple_media_info_type_get_type(vo
GType purple_media_info_type_get_type(void);
/**
+ * Gets the type of the media caps flags
+ *
+ * @return The media caps flags' GType
+ *
+ * @since 2.7.0
+ */
+GType purple_media_caps_get_type(void);
+
+/**
* Gets the type of the media candidate structure.
*
* @return The media canditate's GType
More information about the Commits
mailing list