gst_plugins_base/gst-libs/gst/rtsp/gstrtspdefs.h
branchRCL_3
changeset 30 7e817e7e631c
parent 29 567bb019e3e3
equal deleted inserted replaced
29:567bb019e3e3 30:7e817e7e631c
    76  * @GST_RTSP_EWSAVERSION: windows networking stack has wrong version
    76  * @GST_RTSP_EWSAVERSION: windows networking stack has wrong version
    77  * @GST_RTSP_EEOF: end-of-file was reached
    77  * @GST_RTSP_EEOF: end-of-file was reached
    78  * @GST_RTSP_ENET: a network problem occured, h_errno contains more details
    78  * @GST_RTSP_ENET: a network problem occured, h_errno contains more details
    79  * @GST_RTSP_ENOTIP: the host is not an IP host
    79  * @GST_RTSP_ENOTIP: the host is not an IP host
    80  * @GST_RTSP_ETIMEOUT: a timeout occured
    80  * @GST_RTSP_ETIMEOUT: a timeout occured
    81  * @GST_RTSP_ETGET: the tunnel GET request has been performed
       
    82  * @GST_RTSP_ETPOST: the tunnel POST request has been performed
       
    83  * @GST_RTSP_ELAST: last error
    81  * @GST_RTSP_ELAST: last error
    84  *
    82  *
    85  * Result codes from the RTSP functions.
    83  * Result codes from the RTSP functions.
    86  */
    84  */
    87 typedef enum {
    85 typedef enum {
    99   GST_RTSP_EWSAVERSION = -10,
    97   GST_RTSP_EWSAVERSION = -10,
   100   GST_RTSP_EEOF        = -11,
    98   GST_RTSP_EEOF        = -11,
   101   GST_RTSP_ENET        = -12,
    99   GST_RTSP_ENET        = -12,
   102   GST_RTSP_ENOTIP      = -13,
   100   GST_RTSP_ENOTIP      = -13,
   103   GST_RTSP_ETIMEOUT    = -14,
   101   GST_RTSP_ETIMEOUT    = -14,
   104   GST_RTSP_ETGET       = -15,
   102 
   105   GST_RTSP_ETPOST      = -16,
   103   GST_RTSP_ELAST       = -15
   106 
       
   107   GST_RTSP_ELAST       = -17
       
   108 } GstRTSPResult;
   104 } GstRTSPResult;
   109 
   105 
   110 /**
   106 /**
   111  * GstRTSPEvent:
   107  * GstRTSPEvent:
   112  * @GST_RTSP_EV_READ: connection is readable
   108  * @GST_RTSP_EV_READ: connection is readable
   281   GST_RTSP_HDR_MAX_ASM_WIDTH,       /* SupportsMaximumASMBandwidth */
   277   GST_RTSP_HDR_MAX_ASM_WIDTH,       /* SupportsMaximumASMBandwidth */
   282   GST_RTSP_HDR_LANGUAGE,            /* Language */
   278   GST_RTSP_HDR_LANGUAGE,            /* Language */
   283   GST_RTSP_HDR_PLAYER_START_TIME,   /* PlayerStarttime */
   279   GST_RTSP_HDR_PLAYER_START_TIME,   /* PlayerStarttime */
   284 
   280 
   285   /* Since 0.10.16 */
   281   /* Since 0.10.16 */
   286   GST_RTSP_HDR_LOCATION,            /* Location */
   282   GST_RTSP_HDR_LOCATION             /* Location */
   287 
       
   288   /* Since 0.10.23 */
       
   289   GST_RTSP_HDR_ETAG,                /* ETag */
       
   290   GST_RTSP_HDR_IF_MATCH,            /* If-Match */
       
   291 
       
   292   /* WM extensions [MS-RTSP] Since 0.10.23 */
       
   293   GST_RTSP_HDR_ACCEPT_CHARSET,      /* Accept-Charset */
       
   294   GST_RTSP_HDR_SUPPORTED,           /* Supported */
       
   295   GST_RTSP_HDR_VARY,                /* Vary */
       
   296   GST_RTSP_HDR_X_ACCELERATE_STREAMING,    /* X-Accelerate-Streaming */
       
   297   GST_RTSP_HDR_X_ACCEPT_AUTHENT,    /* X-Accept-Authentication */
       
   298   GST_RTSP_HDR_X_ACCEPT_PROXY_AUTHENT,    /* X-Accept-Proxy-Authentication */
       
   299   GST_RTSP_HDR_X_BROADCAST_ID,      /* X-Broadcast-Id */
       
   300   GST_RTSP_HDR_X_BURST_STREAMING,   /* X-Burst-Streaming */
       
   301   GST_RTSP_HDR_X_NOTICE,            /* X-Notice */
       
   302   GST_RTSP_HDR_X_PLAYER_LAG_TIME,   /* X-Player-Lag-Time */
       
   303   GST_RTSP_HDR_X_PLAYLIST,          /* X-Playlist */
       
   304   GST_RTSP_HDR_X_PLAYLIST_CHANGE_NOTICE,  /* X-Playlist-Change-Notice */
       
   305   GST_RTSP_HDR_X_PLAYLIST_GEN_ID,   /* X-Playlist-Gen-Id */
       
   306   GST_RTSP_HDR_X_PLAYLIST_SEEK_ID,  /* X-Playlist-Seek-Id */
       
   307   GST_RTSP_HDR_X_PROXY_CLIENT_AGENT,      /* X-Proxy-Client-Agent */
       
   308   GST_RTSP_HDR_X_PROXY_CLIENT_VERB, /* X-Proxy-Client-Verb */
       
   309   GST_RTSP_HDR_X_RECEDING_PLAYLISTCHANGE, /* X-Receding-PlaylistChange */
       
   310   GST_RTSP_HDR_X_RTP_INFO,          /* X-RTP-Info */
       
   311   GST_RTSP_HDR_X_STARTUPPROFILE,    /* X-StartupProfile */
       
   312 
       
   313   /* Since 0.10.24 */
       
   314   GST_RTSP_HDR_TIMESTAMP            /* Timestamp */
       
   315 
   283 
   316 } GstRTSPHeaderField;
   284 } GstRTSPHeaderField;
   317 
   285 
   318 typedef enum {
   286 typedef enum {
   319   GST_RTSP_STS_INVALID                              = 0, 
   287   GST_RTSP_STS_INVALID                              = 0, 
   368 const gchar*       gst_rtsp_method_as_text     (GstRTSPMethod method);
   336 const gchar*       gst_rtsp_method_as_text     (GstRTSPMethod method);
   369 const gchar*       gst_rtsp_version_as_text    (GstRTSPVersion version);
   337 const gchar*       gst_rtsp_version_as_text    (GstRTSPVersion version);
   370 const gchar*       gst_rtsp_header_as_text     (GstRTSPHeaderField field);
   338 const gchar*       gst_rtsp_header_as_text     (GstRTSPHeaderField field);
   371 const gchar*       gst_rtsp_status_as_text     (GstRTSPStatusCode code);
   339 const gchar*       gst_rtsp_status_as_text     (GstRTSPStatusCode code);
   372 
   340 
   373 gchar*             gst_rtsp_options_as_text    (GstRTSPMethod options);
       
   374 
       
   375 GstRTSPHeaderField gst_rtsp_find_header_field  (const gchar *header);
   341 GstRTSPHeaderField gst_rtsp_find_header_field  (const gchar *header);
   376 GstRTSPMethod      gst_rtsp_find_method        (const gchar *method);
   342 GstRTSPMethod      gst_rtsp_find_method        (const gchar *method);
   377 
   343 
   378 G_END_DECLS
   344 G_END_DECLS
   379 
   345