annotate libpurple/media/enum-types.h @ 29535:ab1e29779722

Split the media API's enum types out into its own file.
author maiku@pidgin.im
date Wed, 21 Oct 2009 20:58:32 +0000
parents
children 02a2e8183b1d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29535
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
1 /**
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
2 * @file enum-types.h Enum types for Media API
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
3 * @ingroup core
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
4 */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
5
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
6 /* purple
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
7 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
8 * Purple is the legal property of its developers, whose names are too numerous
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
9 * to list here. Please refer to the COPYRIGHT file distributed with this
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
10 * source distribution.
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
11 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
12 * This program is free software; you can redistribute it and/or modify
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
13 * it under the terms of the GNU General Public License as published by
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
14 * the Free Software Foundation; either version 2 of the License, or
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
15 * (at your option) any later version.
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
16 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
17 * This program is distributed in the hope that it will be useful,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
20 * GNU General Public License for more details.
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
21 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
22 * You should have received a copy of the GNU General Public License
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
23 * along with this program; if not, write to the Free Software
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
25 */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
26
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
27 #ifndef _PURPLE_MEDIA_ENUM_TYPES_H_
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
28 #define _PURPLE_MEDIA_ENUM_TYPES_H_
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
29
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
30 #include <glib-object.h>
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
31
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
32 G_BEGIN_DECLS
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
33
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
34 #define PURPLE_TYPE_MEDIA_CANDIDATE_TYPE (purple_media_candidate_type_get_type())
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
35 #define PURPLE_MEDIA_TYPE_CAPS (purple_media_caps_get_type())
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
36 #define PURPLE_MEDIA_TYPE_INFO_TYPE (purple_media_info_type_get_type())
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
37 #define PURPLE_TYPE_MEDIA_NETWORK_PROTOCOL (purple_media_network_protocol_get_type())
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
38 #define PURPLE_TYPE_MEDIA_SESSION_TYPE (purple_media_session_type_get_type())
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
39 #define PURPLE_MEDIA_TYPE_STATE (purple_media_state_changed_get_type())
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
40
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
41 /** Media candidate types */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
42 typedef enum {
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
43 PURPLE_MEDIA_CANDIDATE_TYPE_HOST,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
44 PURPLE_MEDIA_CANDIDATE_TYPE_SRFLX,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
45 PURPLE_MEDIA_CANDIDATE_TYPE_PRFLX,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
46 PURPLE_MEDIA_CANDIDATE_TYPE_RELAY,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
47 PURPLE_MEDIA_CANDIDATE_TYPE_MULTICAST,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
48 } PurpleMediaCandidateType;
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
49
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
50 /** Media caps */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
51 typedef enum {
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
52 PURPLE_MEDIA_CAPS_NONE = 0,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
53 PURPLE_MEDIA_CAPS_AUDIO = 1,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
54 PURPLE_MEDIA_CAPS_AUDIO_SINGLE_DIRECTION = 1 << 1,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
55 PURPLE_MEDIA_CAPS_VIDEO = 1 << 2,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
56 PURPLE_MEDIA_CAPS_VIDEO_SINGLE_DIRECTION = 1 << 3,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
57 PURPLE_MEDIA_CAPS_AUDIO_VIDEO = 1 << 4,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
58 PURPLE_MEDIA_CAPS_MODIFY_SESSION = 1 << 5,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
59 PURPLE_MEDIA_CAPS_CHANGE_DIRECTION = 1 << 6,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
60 } PurpleMediaCaps;
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
61
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
62 /** Media component types */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
63 typedef enum {
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
64 PURPLE_MEDIA_COMPONENT_NONE = 0,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
65 PURPLE_MEDIA_COMPONENT_RTP = 1,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
66 PURPLE_MEDIA_COMPONENT_RTCP = 2,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
67 } PurpleMediaComponentType;
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
68
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
69 /** Media info types */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
70 typedef enum {
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
71 PURPLE_MEDIA_INFO_HANGUP = 0,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
72 PURPLE_MEDIA_INFO_ACCEPT,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
73 PURPLE_MEDIA_INFO_REJECT,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
74 PURPLE_MEDIA_INFO_MUTE,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
75 PURPLE_MEDIA_INFO_UNMUTE,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
76 PURPLE_MEDIA_INFO_PAUSE,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
77 PURPLE_MEDIA_INFO_UNPAUSE,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
78 PURPLE_MEDIA_INFO_HOLD,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
79 PURPLE_MEDIA_INFO_UNHOLD,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
80 } PurpleMediaInfoType;
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
81
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
82 /** Media network protocols */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
83 typedef enum {
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
84 PURPLE_MEDIA_NETWORK_PROTOCOL_UDP,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
85 PURPLE_MEDIA_NETWORK_PROTOCOL_TCP,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
86 } PurpleMediaNetworkProtocol;
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
87
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
88 /** Media session types */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
89 typedef enum {
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
90 PURPLE_MEDIA_NONE = 0,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
91 PURPLE_MEDIA_RECV_AUDIO = 1 << 0,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
92 PURPLE_MEDIA_SEND_AUDIO = 1 << 1,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
93 PURPLE_MEDIA_RECV_VIDEO = 1 << 2,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
94 PURPLE_MEDIA_SEND_VIDEO = 1 << 3,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
95 PURPLE_MEDIA_AUDIO = PURPLE_MEDIA_RECV_AUDIO | PURPLE_MEDIA_SEND_AUDIO,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
96 PURPLE_MEDIA_VIDEO = PURPLE_MEDIA_RECV_VIDEO | PURPLE_MEDIA_SEND_VIDEO
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
97 } PurpleMediaSessionType;
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
98
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
99 /** Media state-changed types */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
100 typedef enum {
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
101 PURPLE_MEDIA_STATE_NEW = 0,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
102 PURPLE_MEDIA_STATE_CONNECTED,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
103 PURPLE_MEDIA_STATE_END,
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
104 } PurpleMediaState;
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
105
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
106 /**
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
107 * Gets the media candidate type's GType
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
108 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
109 * @return The media candidate type's GType.
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
110 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
111 * @since 2.6.0
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
112 */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
113 GType purple_media_candidate_type_get_type(void);
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
114
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
115 /**
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
116 * Gets the type of the media caps flags
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
117 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
118 * @return The media caps flags' GType
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
119 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
120 * @since 2.7.0
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
121 */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
122 GType purple_media_caps_get_type(void);
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
123
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
124 /**
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
125 * Gets the type of the info type enum
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
126 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
127 * @return The info type enum's GType
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
128 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
129 * @since 2.6.0
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
130 */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
131 GType purple_media_info_type_get_type(void);
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
132
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
133 /**
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
134 * Gets the media network protocol's GType
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
135 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
136 * @return The media network protocol's GType.
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
137 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
138 * @since 2.6.0
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
139 */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
140 GType purple_media_network_protocol_get_type(void);
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
141
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
142 /**
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
143 * Gets the media session type's GType
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
144 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
145 * @return The media session type's GType.
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
146 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
147 * @since 2.6.0
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
148 */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
149 GType purple_media_session_type_get_type(void);
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
150
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
151 /**
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
152 * Gets the type of the state-changed enum
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
153 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
154 * @return The state-changed enum's GType
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
155 *
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
156 * @since 2.6.0
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
157 */
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
158 GType purple_media_state_changed_get_type(void);
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
159
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
160 G_END_DECLS
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
161
ab1e29779722 Split the media API's enum types out into its own file.
maiku@pidgin.im
parents:
diff changeset
162 #endif /* _PURPLE_MEDIA_ENUM_TYPES_ */