gstrtsp-enumtypes.c 17.9 KB
Newer Older
1

2

3

4 5 6
#include "gstrtsp-enumtypes.h"

#include "gstrtspdefs.h"
7 8 9 10 11

/* enumerations from "gstrtspdefs.h" */
GType
gst_rtsp_result_get_type (void)
{
Jan Schmidt's avatar
Jan Schmidt committed
12 13
  static volatile gsize g_define_type_id__volatile = 0;
  if (g_once_init_enter (&g_define_type_id__volatile)) {
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
    static const GEnumValue values[] = {
      {GST_RTSP_OK, "GST_RTSP_OK", "ok"},
      {GST_RTSP_ERROR, "GST_RTSP_ERROR", "error"},
      {GST_RTSP_EINVAL, "GST_RTSP_EINVAL", "einval"},
      {GST_RTSP_EINTR, "GST_RTSP_EINTR", "eintr"},
      {GST_RTSP_ENOMEM, "GST_RTSP_ENOMEM", "enomem"},
      {GST_RTSP_ERESOLV, "GST_RTSP_ERESOLV", "eresolv"},
      {GST_RTSP_ENOTIMPL, "GST_RTSP_ENOTIMPL", "enotimpl"},
      {GST_RTSP_ESYS, "GST_RTSP_ESYS", "esys"},
      {GST_RTSP_EPARSE, "GST_RTSP_EPARSE", "eparse"},
      {GST_RTSP_EWSASTART, "GST_RTSP_EWSASTART", "ewsastart"},
      {GST_RTSP_EWSAVERSION, "GST_RTSP_EWSAVERSION", "ewsaversion"},
      {GST_RTSP_EEOF, "GST_RTSP_EEOF", "eeof"},
      {GST_RTSP_ENET, "GST_RTSP_ENET", "enet"},
      {GST_RTSP_ENOTIP, "GST_RTSP_ENOTIP", "enotip"},
      {GST_RTSP_ETIMEOUT, "GST_RTSP_ETIMEOUT", "etimeout"},
30 31
      {GST_RTSP_ETGET, "GST_RTSP_ETGET", "etget"},
      {GST_RTSP_ETPOST, "GST_RTSP_ETPOST", "etpost"},
32 33 34
      {GST_RTSP_ELAST, "GST_RTSP_ELAST", "elast"},
      {0, NULL, NULL}
    };
Jan Schmidt's avatar
Jan Schmidt committed
35 36
    GType g_define_type_id = g_enum_register_static ("GstRTSPResult", values);
    g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
37
  }
Jan Schmidt's avatar
Jan Schmidt committed
38
  return g_define_type_id__volatile;
39 40 41 42 43
}

GType
gst_rtsp_event_get_type (void)
{
Jan Schmidt's avatar
Jan Schmidt committed
44 45
  static volatile gsize g_define_type_id__volatile = 0;
  if (g_once_init_enter (&g_define_type_id__volatile)) {
46 47 48 49 50
    static const GFlagsValue values[] = {
      {GST_RTSP_EV_READ, "GST_RTSP_EV_READ", "read"},
      {GST_RTSP_EV_WRITE, "GST_RTSP_EV_WRITE", "write"},
      {0, NULL, NULL}
    };
Jan Schmidt's avatar
Jan Schmidt committed
51 52
    GType g_define_type_id = g_flags_register_static ("GstRTSPEvent", values);
    g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
53
  }
Jan Schmidt's avatar
Jan Schmidt committed
54
  return g_define_type_id__volatile;
55 56 57 58 59
}

GType
gst_rtsp_family_get_type (void)
{
Jan Schmidt's avatar
Jan Schmidt committed
60 61
  static volatile gsize g_define_type_id__volatile = 0;
  if (g_once_init_enter (&g_define_type_id__volatile)) {
62 63 64 65 66 67
    static const GEnumValue values[] = {
      {GST_RTSP_FAM_NONE, "GST_RTSP_FAM_NONE", "none"},
      {GST_RTSP_FAM_INET, "GST_RTSP_FAM_INET", "inet"},
      {GST_RTSP_FAM_INET6, "GST_RTSP_FAM_INET6", "inet6"},
      {0, NULL, NULL}
    };
Jan Schmidt's avatar
Jan Schmidt committed
68 69
    GType g_define_type_id = g_enum_register_static ("GstRTSPFamily", values);
    g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
70
  }
Jan Schmidt's avatar
Jan Schmidt committed
71
  return g_define_type_id__volatile;
72 73 74 75 76
}

GType
gst_rtsp_state_get_type (void)
{
Jan Schmidt's avatar
Jan Schmidt committed
77 78
  static volatile gsize g_define_type_id__volatile = 0;
  if (g_once_init_enter (&g_define_type_id__volatile)) {
79 80 81 82 83 84 85 86 87
    static const GEnumValue values[] = {
      {GST_RTSP_STATE_INVALID, "GST_RTSP_STATE_INVALID", "invalid"},
      {GST_RTSP_STATE_INIT, "GST_RTSP_STATE_INIT", "init"},
      {GST_RTSP_STATE_READY, "GST_RTSP_STATE_READY", "ready"},
      {GST_RTSP_STATE_SEEKING, "GST_RTSP_STATE_SEEKING", "seeking"},
      {GST_RTSP_STATE_PLAYING, "GST_RTSP_STATE_PLAYING", "playing"},
      {GST_RTSP_STATE_RECORDING, "GST_RTSP_STATE_RECORDING", "recording"},
      {0, NULL, NULL}
    };
Jan Schmidt's avatar
Jan Schmidt committed
88 89
    GType g_define_type_id = g_enum_register_static ("GstRTSPState", values);
    g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
90
  }
Jan Schmidt's avatar
Jan Schmidt committed
91
  return g_define_type_id__volatile;
92 93 94 95 96
}

GType
gst_rtsp_version_get_type (void)
{
Jan Schmidt's avatar
Jan Schmidt committed
97 98
  static volatile gsize g_define_type_id__volatile = 0;
  if (g_once_init_enter (&g_define_type_id__volatile)) {
99 100 101
    static const GEnumValue values[] = {
      {GST_RTSP_VERSION_INVALID, "GST_RTSP_VERSION_INVALID", "invalid"},
      {GST_RTSP_VERSION_1_0, "GST_RTSP_VERSION_1_0", "1-0"},
102
      {GST_RTSP_VERSION_1_1, "GST_RTSP_VERSION_1_1", "1-1"},
103 104
      {0, NULL, NULL}
    };
Jan Schmidt's avatar
Jan Schmidt committed
105 106
    GType g_define_type_id = g_enum_register_static ("GstRTSPVersion", values);
    g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
107
  }
Jan Schmidt's avatar
Jan Schmidt committed
108
  return g_define_type_id__volatile;
109 110 111 112 113
}

GType
gst_rtsp_method_get_type (void)
{
Jan Schmidt's avatar
Jan Schmidt committed
114 115
  static volatile gsize g_define_type_id__volatile = 0;
  if (g_once_init_enter (&g_define_type_id__volatile)) {
116 117 118 119 120 121 122 123 124 125 126 127 128
    static const GFlagsValue values[] = {
      {GST_RTSP_INVALID, "GST_RTSP_INVALID", "invalid"},
      {GST_RTSP_DESCRIBE, "GST_RTSP_DESCRIBE", "describe"},
      {GST_RTSP_ANNOUNCE, "GST_RTSP_ANNOUNCE", "announce"},
      {GST_RTSP_GET_PARAMETER, "GST_RTSP_GET_PARAMETER", "get-parameter"},
      {GST_RTSP_OPTIONS, "GST_RTSP_OPTIONS", "options"},
      {GST_RTSP_PAUSE, "GST_RTSP_PAUSE", "pause"},
      {GST_RTSP_PLAY, "GST_RTSP_PLAY", "play"},
      {GST_RTSP_RECORD, "GST_RTSP_RECORD", "record"},
      {GST_RTSP_REDIRECT, "GST_RTSP_REDIRECT", "redirect"},
      {GST_RTSP_SETUP, "GST_RTSP_SETUP", "setup"},
      {GST_RTSP_SET_PARAMETER, "GST_RTSP_SET_PARAMETER", "set-parameter"},
      {GST_RTSP_TEARDOWN, "GST_RTSP_TEARDOWN", "teardown"},
129 130
      {GST_RTSP_GET, "GST_RTSP_GET", "get"},
      {GST_RTSP_POST, "GST_RTSP_POST", "post"},
131 132
      {0, NULL, NULL}
    };
Jan Schmidt's avatar
Jan Schmidt committed
133 134
    GType g_define_type_id = g_flags_register_static ("GstRTSPMethod", values);
    g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
135
  }
Jan Schmidt's avatar
Jan Schmidt committed
136
  return g_define_type_id__volatile;
137 138 139 140 141
}

GType
gst_rtsp_auth_method_get_type (void)
{
Jan Schmidt's avatar
Jan Schmidt committed
142 143
  static volatile gsize g_define_type_id__volatile = 0;
  if (g_once_init_enter (&g_define_type_id__volatile)) {
144 145 146 147 148 149
    static const GEnumValue values[] = {
      {GST_RTSP_AUTH_NONE, "GST_RTSP_AUTH_NONE", "none"},
      {GST_RTSP_AUTH_BASIC, "GST_RTSP_AUTH_BASIC", "basic"},
      {GST_RTSP_AUTH_DIGEST, "GST_RTSP_AUTH_DIGEST", "digest"},
      {0, NULL, NULL}
    };
Jan Schmidt's avatar
Jan Schmidt committed
150 151 152
    GType g_define_type_id =
        g_enum_register_static ("GstRTSPAuthMethod", values);
    g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
153
  }
Jan Schmidt's avatar
Jan Schmidt committed
154
  return g_define_type_id__volatile;
155 156 157 158 159
}

GType
gst_rtsp_header_field_get_type (void)
{
Jan Schmidt's avatar
Jan Schmidt committed
160 161
  static volatile gsize g_define_type_id__volatile = 0;
  if (g_once_init_enter (&g_define_type_id__volatile)) {
162 163 164 165
    static const GEnumValue values[] = {
      {GST_RTSP_HDR_INVALID, "GST_RTSP_HDR_INVALID", "invalid"},
      {GST_RTSP_HDR_ACCEPT, "GST_RTSP_HDR_ACCEPT", "accept"},
      {GST_RTSP_HDR_ACCEPT_ENCODING, "GST_RTSP_HDR_ACCEPT_ENCODING",
166
          "accept-encoding"},
167
      {GST_RTSP_HDR_ACCEPT_LANGUAGE, "GST_RTSP_HDR_ACCEPT_LANGUAGE",
168
          "accept-language"},
169 170
      {GST_RTSP_HDR_ALLOW, "GST_RTSP_HDR_ALLOW", "allow"},
      {GST_RTSP_HDR_AUTHORIZATION, "GST_RTSP_HDR_AUTHORIZATION",
171
          "authorization"},
172 173 174
      {GST_RTSP_HDR_BANDWIDTH, "GST_RTSP_HDR_BANDWIDTH", "bandwidth"},
      {GST_RTSP_HDR_BLOCKSIZE, "GST_RTSP_HDR_BLOCKSIZE", "blocksize"},
      {GST_RTSP_HDR_CACHE_CONTROL, "GST_RTSP_HDR_CACHE_CONTROL",
175
          "cache-control"},
176 177 178 179
      {GST_RTSP_HDR_CONFERENCE, "GST_RTSP_HDR_CONFERENCE", "conference"},
      {GST_RTSP_HDR_CONNECTION, "GST_RTSP_HDR_CONNECTION", "connection"},
      {GST_RTSP_HDR_CONTENT_BASE, "GST_RTSP_HDR_CONTENT_BASE", "content-base"},
      {GST_RTSP_HDR_CONTENT_ENCODING, "GST_RTSP_HDR_CONTENT_ENCODING",
180
          "content-encoding"},
181
      {GST_RTSP_HDR_CONTENT_LANGUAGE, "GST_RTSP_HDR_CONTENT_LANGUAGE",
182
          "content-language"},
183
      {GST_RTSP_HDR_CONTENT_LENGTH, "GST_RTSP_HDR_CONTENT_LENGTH",
184
          "content-length"},
185
      {GST_RTSP_HDR_CONTENT_LOCATION, "GST_RTSP_HDR_CONTENT_LOCATION",
186
          "content-location"},
187 188 189 190 191 192
      {GST_RTSP_HDR_CONTENT_TYPE, "GST_RTSP_HDR_CONTENT_TYPE", "content-type"},
      {GST_RTSP_HDR_CSEQ, "GST_RTSP_HDR_CSEQ", "cseq"},
      {GST_RTSP_HDR_DATE, "GST_RTSP_HDR_DATE", "date"},
      {GST_RTSP_HDR_EXPIRES, "GST_RTSP_HDR_EXPIRES", "expires"},
      {GST_RTSP_HDR_FROM, "GST_RTSP_HDR_FROM", "from"},
      {GST_RTSP_HDR_IF_MODIFIED_SINCE, "GST_RTSP_HDR_IF_MODIFIED_SINCE",
193
          "if-modified-since"},
194
      {GST_RTSP_HDR_LAST_MODIFIED, "GST_RTSP_HDR_LAST_MODIFIED",
195
          "last-modified"},
196
      {GST_RTSP_HDR_PROXY_AUTHENTICATE, "GST_RTSP_HDR_PROXY_AUTHENTICATE",
197
          "proxy-authenticate"},
198
      {GST_RTSP_HDR_PROXY_REQUIRE, "GST_RTSP_HDR_PROXY_REQUIRE",
199
          "proxy-require"},
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
      {GST_RTSP_HDR_PUBLIC, "GST_RTSP_HDR_PUBLIC", "public"},
      {GST_RTSP_HDR_RANGE, "GST_RTSP_HDR_RANGE", "range"},
      {GST_RTSP_HDR_REFERER, "GST_RTSP_HDR_REFERER", "referer"},
      {GST_RTSP_HDR_REQUIRE, "GST_RTSP_HDR_REQUIRE", "require"},
      {GST_RTSP_HDR_RETRY_AFTER, "GST_RTSP_HDR_RETRY_AFTER", "retry-after"},
      {GST_RTSP_HDR_RTP_INFO, "GST_RTSP_HDR_RTP_INFO", "rtp-info"},
      {GST_RTSP_HDR_SCALE, "GST_RTSP_HDR_SCALE", "scale"},
      {GST_RTSP_HDR_SESSION, "GST_RTSP_HDR_SESSION", "session"},
      {GST_RTSP_HDR_SERVER, "GST_RTSP_HDR_SERVER", "server"},
      {GST_RTSP_HDR_SPEED, "GST_RTSP_HDR_SPEED", "speed"},
      {GST_RTSP_HDR_TRANSPORT, "GST_RTSP_HDR_TRANSPORT", "transport"},
      {GST_RTSP_HDR_UNSUPPORTED, "GST_RTSP_HDR_UNSUPPORTED", "unsupported"},
      {GST_RTSP_HDR_USER_AGENT, "GST_RTSP_HDR_USER_AGENT", "user-agent"},
      {GST_RTSP_HDR_VIA, "GST_RTSP_HDR_VIA", "via"},
      {GST_RTSP_HDR_WWW_AUTHENTICATE, "GST_RTSP_HDR_WWW_AUTHENTICATE",
215
          "www-authenticate"},
216
      {GST_RTSP_HDR_CLIENT_CHALLENGE, "GST_RTSP_HDR_CLIENT_CHALLENGE",
217
          "client-challenge"},
218
      {GST_RTSP_HDR_REAL_CHALLENGE1, "GST_RTSP_HDR_REAL_CHALLENGE1",
219
          "real-challenge1"},
220
      {GST_RTSP_HDR_REAL_CHALLENGE2, "GST_RTSP_HDR_REAL_CHALLENGE2",
221
          "real-challenge2"},
222
      {GST_RTSP_HDR_REAL_CHALLENGE3, "GST_RTSP_HDR_REAL_CHALLENGE3",
223
          "real-challenge3"},
224 225 226 227 228 229 230
      {GST_RTSP_HDR_SUBSCRIBE, "GST_RTSP_HDR_SUBSCRIBE", "subscribe"},
      {GST_RTSP_HDR_ALERT, "GST_RTSP_HDR_ALERT", "alert"},
      {GST_RTSP_HDR_CLIENT_ID, "GST_RTSP_HDR_CLIENT_ID", "client-id"},
      {GST_RTSP_HDR_COMPANY_ID, "GST_RTSP_HDR_COMPANY_ID", "company-id"},
      {GST_RTSP_HDR_GUID, "GST_RTSP_HDR_GUID", "guid"},
      {GST_RTSP_HDR_REGION_DATA, "GST_RTSP_HDR_REGION_DATA", "region-data"},
      {GST_RTSP_HDR_MAX_ASM_WIDTH, "GST_RTSP_HDR_MAX_ASM_WIDTH",
231
          "max-asm-width"},
232 233
      {GST_RTSP_HDR_LANGUAGE, "GST_RTSP_HDR_LANGUAGE", "language"},
      {GST_RTSP_HDR_PLAYER_START_TIME, "GST_RTSP_HDR_PLAYER_START_TIME",
234
          "player-start-time"},
235
      {GST_RTSP_HDR_LOCATION, "GST_RTSP_HDR_LOCATION", "location"},
Jan Schmidt's avatar
Jan Schmidt committed
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
      {GST_RTSP_HDR_ETAG, "GST_RTSP_HDR_ETAG", "etag"},
      {GST_RTSP_HDR_IF_MATCH, "GST_RTSP_HDR_IF_MATCH", "if-match"},
      {GST_RTSP_HDR_ACCEPT_CHARSET, "GST_RTSP_HDR_ACCEPT_CHARSET",
          "accept-charset"},
      {GST_RTSP_HDR_SUPPORTED, "GST_RTSP_HDR_SUPPORTED", "supported"},
      {GST_RTSP_HDR_VARY, "GST_RTSP_HDR_VARY", "vary"},
      {GST_RTSP_HDR_X_ACCELERATE_STREAMING,
          "GST_RTSP_HDR_X_ACCELERATE_STREAMING", "x-accelerate-streaming"},
      {GST_RTSP_HDR_X_ACCEPT_AUTHENT, "GST_RTSP_HDR_X_ACCEPT_AUTHENT",
          "x-accept-authent"},
      {GST_RTSP_HDR_X_ACCEPT_PROXY_AUTHENT,
          "GST_RTSP_HDR_X_ACCEPT_PROXY_AUTHENT", "x-accept-proxy-authent"},
      {GST_RTSP_HDR_X_BROADCAST_ID, "GST_RTSP_HDR_X_BROADCAST_ID",
          "x-broadcast-id"},
      {GST_RTSP_HDR_X_BURST_STREAMING, "GST_RTSP_HDR_X_BURST_STREAMING",
          "x-burst-streaming"},
      {GST_RTSP_HDR_X_NOTICE, "GST_RTSP_HDR_X_NOTICE", "x-notice"},
      {GST_RTSP_HDR_X_PLAYER_LAG_TIME, "GST_RTSP_HDR_X_PLAYER_LAG_TIME",
          "x-player-lag-time"},
      {GST_RTSP_HDR_X_PLAYLIST, "GST_RTSP_HDR_X_PLAYLIST", "x-playlist"},
      {GST_RTSP_HDR_X_PLAYLIST_CHANGE_NOTICE,
            "GST_RTSP_HDR_X_PLAYLIST_CHANGE_NOTICE",
          "x-playlist-change-notice"},
      {GST_RTSP_HDR_X_PLAYLIST_GEN_ID, "GST_RTSP_HDR_X_PLAYLIST_GEN_ID",
          "x-playlist-gen-id"},
      {GST_RTSP_HDR_X_PLAYLIST_SEEK_ID, "GST_RTSP_HDR_X_PLAYLIST_SEEK_ID",
          "x-playlist-seek-id"},
      {GST_RTSP_HDR_X_PROXY_CLIENT_AGENT, "GST_RTSP_HDR_X_PROXY_CLIENT_AGENT",
          "x-proxy-client-agent"},
      {GST_RTSP_HDR_X_PROXY_CLIENT_VERB, "GST_RTSP_HDR_X_PROXY_CLIENT_VERB",
          "x-proxy-client-verb"},
      {GST_RTSP_HDR_X_RECEDING_PLAYLISTCHANGE,
            "GST_RTSP_HDR_X_RECEDING_PLAYLISTCHANGE",
          "x-receding-playlistchange"},
      {GST_RTSP_HDR_X_RTP_INFO, "GST_RTSP_HDR_X_RTP_INFO", "x-rtp-info"},
      {GST_RTSP_HDR_X_STARTUPPROFILE, "GST_RTSP_HDR_X_STARTUPPROFILE",
          "x-startupprofile"},
Jan Schmidt's avatar
Jan Schmidt committed
273
      {GST_RTSP_HDR_TIMESTAMP, "GST_RTSP_HDR_TIMESTAMP", "timestamp"},
274 275 276 277 278 279 280 281
      {GST_RTSP_HDR_AUTHENTICATION_INFO, "GST_RTSP_HDR_AUTHENTICATION_INFO",
          "authentication-info"},
      {GST_RTSP_HDR_HOST, "GST_RTSP_HDR_HOST", "host"},
      {GST_RTSP_HDR_PRAGMA, "GST_RTSP_HDR_PRAGMA", "pragma"},
      {GST_RTSP_HDR_X_SERVER_IP_ADDRESS, "GST_RTSP_HDR_X_SERVER_IP_ADDRESS",
          "x-server-ip-address"},
      {GST_RTSP_HDR_X_SESSIONCOOKIE, "GST_RTSP_HDR_X_SESSIONCOOKIE",
          "x-sessioncookie"},
Wim Taymans's avatar
Wim Taymans committed
282 283
      {GST_RTSP_HDR_RTCP_INTERVAL, "GST_RTSP_HDR_RTCP_INTERVAL",
          "rtcp-interval"},
284
      {GST_RTSP_HDR_LAST, "GST_RTSP_HDR_LAST", "last"},
285 286
      {0, NULL, NULL}
    };
Jan Schmidt's avatar
Jan Schmidt committed
287 288 289
    GType g_define_type_id =
        g_enum_register_static ("GstRTSPHeaderField", values);
    g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
290
  }
Jan Schmidt's avatar
Jan Schmidt committed
291
  return g_define_type_id__volatile;
292 293 294 295 296
}

GType
gst_rtsp_status_code_get_type (void)
{
Jan Schmidt's avatar
Jan Schmidt committed
297 298
  static volatile gsize g_define_type_id__volatile = 0;
  if (g_once_init_enter (&g_define_type_id__volatile)) {
299 300 301 302 303 304
    static const GEnumValue values[] = {
      {GST_RTSP_STS_INVALID, "GST_RTSP_STS_INVALID", "invalid"},
      {GST_RTSP_STS_CONTINUE, "GST_RTSP_STS_CONTINUE", "continue"},
      {GST_RTSP_STS_OK, "GST_RTSP_STS_OK", "ok"},
      {GST_RTSP_STS_CREATED, "GST_RTSP_STS_CREATED", "created"},
      {GST_RTSP_STS_LOW_ON_STORAGE, "GST_RTSP_STS_LOW_ON_STORAGE",
305
          "low-on-storage"},
306
      {GST_RTSP_STS_MULTIPLE_CHOICES, "GST_RTSP_STS_MULTIPLE_CHOICES",
307
          "multiple-choices"},
308
      {GST_RTSP_STS_MOVED_PERMANENTLY, "GST_RTSP_STS_MOVED_PERMANENTLY",
309
          "moved-permanently"},
310
      {GST_RTSP_STS_MOVE_TEMPORARILY, "GST_RTSP_STS_MOVE_TEMPORARILY",
311
          "move-temporarily"},
312 313 314 315 316 317
      {GST_RTSP_STS_SEE_OTHER, "GST_RTSP_STS_SEE_OTHER", "see-other"},
      {GST_RTSP_STS_NOT_MODIFIED, "GST_RTSP_STS_NOT_MODIFIED", "not-modified"},
      {GST_RTSP_STS_USE_PROXY, "GST_RTSP_STS_USE_PROXY", "use-proxy"},
      {GST_RTSP_STS_BAD_REQUEST, "GST_RTSP_STS_BAD_REQUEST", "bad-request"},
      {GST_RTSP_STS_UNAUTHORIZED, "GST_RTSP_STS_UNAUTHORIZED", "unauthorized"},
      {GST_RTSP_STS_PAYMENT_REQUIRED, "GST_RTSP_STS_PAYMENT_REQUIRED",
318
          "payment-required"},
319 320 321
      {GST_RTSP_STS_FORBIDDEN, "GST_RTSP_STS_FORBIDDEN", "forbidden"},
      {GST_RTSP_STS_NOT_FOUND, "GST_RTSP_STS_NOT_FOUND", "not-found"},
      {GST_RTSP_STS_METHOD_NOT_ALLOWED, "GST_RTSP_STS_METHOD_NOT_ALLOWED",
322
          "method-not-allowed"},
323
      {GST_RTSP_STS_NOT_ACCEPTABLE, "GST_RTSP_STS_NOT_ACCEPTABLE",
324
          "not-acceptable"},
325
      {GST_RTSP_STS_PROXY_AUTH_REQUIRED, "GST_RTSP_STS_PROXY_AUTH_REQUIRED",
326
          "proxy-auth-required"},
327
      {GST_RTSP_STS_REQUEST_TIMEOUT, "GST_RTSP_STS_REQUEST_TIMEOUT",
328
          "request-timeout"},
329 330
      {GST_RTSP_STS_GONE, "GST_RTSP_STS_GONE", "gone"},
      {GST_RTSP_STS_LENGTH_REQUIRED, "GST_RTSP_STS_LENGTH_REQUIRED",
331
          "length-required"},
332
      {GST_RTSP_STS_PRECONDITION_FAILED, "GST_RTSP_STS_PRECONDITION_FAILED",
333
          "precondition-failed"},
334 335
      {GST_RTSP_STS_REQUEST_ENTITY_TOO_LARGE,
            "GST_RTSP_STS_REQUEST_ENTITY_TOO_LARGE",
336
          "request-entity-too-large"},
337
      {GST_RTSP_STS_REQUEST_URI_TOO_LARGE, "GST_RTSP_STS_REQUEST_URI_TOO_LARGE",
338
          "request-uri-too-large"},
339
      {GST_RTSP_STS_UNSUPPORTED_MEDIA_TYPE,
340
          "GST_RTSP_STS_UNSUPPORTED_MEDIA_TYPE", "unsupported-media-type"},
341 342
      {GST_RTSP_STS_PARAMETER_NOT_UNDERSTOOD,
            "GST_RTSP_STS_PARAMETER_NOT_UNDERSTOOD",
343
          "parameter-not-understood"},
344
      {GST_RTSP_STS_CONFERENCE_NOT_FOUND, "GST_RTSP_STS_CONFERENCE_NOT_FOUND",
345
          "conference-not-found"},
346
      {GST_RTSP_STS_NOT_ENOUGH_BANDWIDTH, "GST_RTSP_STS_NOT_ENOUGH_BANDWIDTH",
347
          "not-enough-bandwidth"},
348
      {GST_RTSP_STS_SESSION_NOT_FOUND, "GST_RTSP_STS_SESSION_NOT_FOUND",
349
          "session-not-found"},
350 351
      {GST_RTSP_STS_METHOD_NOT_VALID_IN_THIS_STATE,
            "GST_RTSP_STS_METHOD_NOT_VALID_IN_THIS_STATE",
352
          "method-not-valid-in-this-state"},
353 354
      {GST_RTSP_STS_HEADER_FIELD_NOT_VALID_FOR_RESOURCE,
            "GST_RTSP_STS_HEADER_FIELD_NOT_VALID_FOR_RESOURCE",
355
          "header-field-not-valid-for-resource"},
356
      {GST_RTSP_STS_INVALID_RANGE, "GST_RTSP_STS_INVALID_RANGE",
357
          "invalid-range"},
358
      {GST_RTSP_STS_PARAMETER_IS_READONLY, "GST_RTSP_STS_PARAMETER_IS_READONLY",
359
          "parameter-is-readonly"},
360 361
      {GST_RTSP_STS_AGGREGATE_OPERATION_NOT_ALLOWED,
            "GST_RTSP_STS_AGGREGATE_OPERATION_NOT_ALLOWED",
362
          "aggregate-operation-not-allowed"},
363 364
      {GST_RTSP_STS_ONLY_AGGREGATE_OPERATION_ALLOWED,
            "GST_RTSP_STS_ONLY_AGGREGATE_OPERATION_ALLOWED",
365
          "only-aggregate-operation-allowed"},
366
      {GST_RTSP_STS_UNSUPPORTED_TRANSPORT, "GST_RTSP_STS_UNSUPPORTED_TRANSPORT",
367
          "unsupported-transport"},
368
      {GST_RTSP_STS_DESTINATION_UNREACHABLE,
369
          "GST_RTSP_STS_DESTINATION_UNREACHABLE", "destination-unreachable"},
370
      {GST_RTSP_STS_INTERNAL_SERVER_ERROR, "GST_RTSP_STS_INTERNAL_SERVER_ERROR",
371
          "internal-server-error"},
372
      {GST_RTSP_STS_NOT_IMPLEMENTED, "GST_RTSP_STS_NOT_IMPLEMENTED",
373
          "not-implemented"},
374 375
      {GST_RTSP_STS_BAD_GATEWAY, "GST_RTSP_STS_BAD_GATEWAY", "bad-gateway"},
      {GST_RTSP_STS_SERVICE_UNAVAILABLE, "GST_RTSP_STS_SERVICE_UNAVAILABLE",
376
          "service-unavailable"},
377
      {GST_RTSP_STS_GATEWAY_TIMEOUT, "GST_RTSP_STS_GATEWAY_TIMEOUT",
378
          "gateway-timeout"},
379 380
      {GST_RTSP_STS_RTSP_VERSION_NOT_SUPPORTED,
            "GST_RTSP_STS_RTSP_VERSION_NOT_SUPPORTED",
381
          "rtsp-version-not-supported"},
382
      {GST_RTSP_STS_OPTION_NOT_SUPPORTED, "GST_RTSP_STS_OPTION_NOT_SUPPORTED",
383
          "option-not-supported"},
384 385
      {0, NULL, NULL}
    };
Jan Schmidt's avatar
Jan Schmidt committed
386 387 388
    GType g_define_type_id =
        g_enum_register_static ("GstRTSPStatusCode", values);
    g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
389
  }
Jan Schmidt's avatar
Jan Schmidt committed
390
  return g_define_type_id__volatile;
391
}