diff rtsp.h @ 5888:4ddbc14bc768 libavformat

Add separate method/url parameters to the rtsp_send_cmd functions
author mstorsjo
date Thu, 25 Mar 2010 21:46:14 +0000
parents 7512694b0515
children 4b42835727aa
line wrap: on
line diff
--- a/rtsp.h	Thu Mar 25 19:47:26 2010 +0000
+++ b/rtsp.h	Thu Mar 25 21:46:14 2010 +0000
@@ -330,13 +330,16 @@
  * Send a command to the RTSP server without waiting for the reply.
  *
  * @param s RTSP (de)muxer context
- * @param cmd the full first line of the request
+ * @param method the method for the request
+ * @param url the target url for the request
+ * @param headers extra header lines to include in the request
  * @param send_content if non-null, the data to send as request body content
  * @param send_content_length the length of the send_content data, or 0 if
  *                            send_content is null
  */
 void ff_rtsp_send_cmd_with_content_async(AVFormatContext *s,
-                                         const char *cmd,
+                                         const char *method, const char *url,
+                                         const char *headers,
                                          const unsigned char *send_content,
                                          int send_content_length);
 /**
@@ -344,13 +347,16 @@
  *
  * @see rtsp_send_cmd_with_content_async
  */
-void ff_rtsp_send_cmd_async(AVFormatContext *s, const char *cmd);
+void ff_rtsp_send_cmd_async(AVFormatContext *s, const char *method,
+                            const char *url, const char *headers);
 
 /**
  * Send a command to the RTSP server and wait for the reply.
  *
  * @param s RTSP (de)muxer context
- * @param cmd the full first line of the request
+ * @param method the method for the request
+ * @param url the target url for the request
+ * @param headers extra header lines to include in the request
  * @param reply pointer where the RTSP message header will be stored
  * @param content_ptr pointer where the RTSP message body, if any, will
  *                    be stored (length is in reply)
@@ -359,7 +365,8 @@
  *                            send_content is null
  */
 void ff_rtsp_send_cmd_with_content(AVFormatContext *s,
-                                   const char *cmd,
+                                   const char *method, const char *url,
+                                   const char *headers,
                                    RTSPMessageHeader *reply,
                                    unsigned char **content_ptr,
                                    const unsigned char *send_content,
@@ -370,7 +377,8 @@
  *
  * @see rtsp_send_cmd_with_content
  */
-void ff_rtsp_send_cmd(AVFormatContext *s, const char *cmd,
+void ff_rtsp_send_cmd(AVFormatContext *s, const char *method,
+                      const char *url, const char *headers,
                       RTSPMessageHeader *reply, unsigned char **content_ptr);
 
 /**