aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-03-25 21:46:14 +0000
committerMartin Storsjö <martin@martin.st>2010-03-25 21:46:14 +0000
commitb17d11c6329848b6f6e3af90baf2bcf044275ce9 (patch)
treecfb48e81f3e848981d3e1ae2ff8a13994bff537a /libavformat/rtsp.h
parentc5c20ae4367905f0cf3080d46aa3bed3806134b9 (diff)
downloadffmpeg-b17d11c6329848b6f6e3af90baf2bcf044275ce9.tar.gz
Add separate method/url parameters to the rtsp_send_cmd functions
Originally committed as revision 22675 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r--libavformat/rtsp.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h
index 13e251b72b..d317eee44b 100644
--- a/libavformat/rtsp.h
+++ b/libavformat/rtsp.h
@@ -330,13 +330,16 @@ extern int rtsp_rtp_port_max;
* 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 @@ void ff_rtsp_send_cmd_with_content_async(AVFormatContext *s,
*
* @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 @@ void ff_rtsp_send_cmd_async(AVFormatContext *s, const char *cmd);
* 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 @@ void ff_rtsp_send_cmd_with_content(AVFormatContext *s,
*
* @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);
/**