rtsp: add new defines for tunneling
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 4 Mar 2009 11:18:00 +0000 (12:18 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 4 Mar 2009 11:18:00 +0000 (12:18 +0100)
Add two more result codes for tunneling support.

gst-libs/gst/rtsp/gstrtspdefs.c
gst-libs/gst/rtsp/gstrtspdefs.h

index dd20e1c..8e4bf7b 100644 (file)
@@ -83,6 +83,8 @@ static const gchar *rtsp_results[] = {
   "Network error: %s",
   "Host is not a valid IP address",
   "Timeout while waiting for server response",
+  "Tunnel GET request received",
+  "Tunnel POST request received",
   "Unknown error (%d)",
   NULL
 };
index 8307212..f128813 100644 (file)
@@ -79,6 +79,8 @@ G_STMT_START { \
  * @GST_RTSP_ENOTIP: the host is not an IP host
  * @GST_RTSP_ETIMEOUT: a timeout occured
  * @GST_RTSP_ELAST: last error
+ * @GST_RTSP_ETGET: the tunnel GET request has been performed
+ * @GST_RTSP_ETPOST: the tunnel POST request has been performed
  *
  * Result codes from the RTSP functions.
  */
@@ -99,8 +101,10 @@ typedef enum {
   GST_RTSP_ENET        = -12,
   GST_RTSP_ENOTIP      = -13,
   GST_RTSP_ETIMEOUT    = -14,
+  GST_RTSP_ETGET       = -15,
+  GST_RTSP_ETPOST      = -16,
 
-  GST_RTSP_ELAST       = -15
+  GST_RTSP_ELAST       = -17
 } GstRTSPResult;
 
 /**