Mercurial > libavformat.hg
comparison rtsp.h @ 4557:bfe6fb676d46 libavformat
Rename RTSPHeader to RTSPMessageHeader to reflect more clearly what the
structure is meant to represent. See "[PATCH] rtsp.[ch]: RTSPHeader ->
RTSPServerResponse" and "[PATCH] document rtsp.h" threads on ML.
author | rbultje |
---|---|
date | Sat, 21 Feb 2009 22:26:44 +0000 |
parents | 2a84d46427d1 |
children | e1a5b4f5b9be |
comparison
equal
deleted
inserted
replaced
4556:72475783652f | 4557:bfe6fb676d46 |
---|---|
57 uint32_t destination; /**< destination IP address */ | 57 uint32_t destination; /**< destination IP address */ |
58 enum RTSPTransport transport; | 58 enum RTSPTransport transport; |
59 enum RTSPLowerTransport lower_transport; | 59 enum RTSPLowerTransport lower_transport; |
60 } RTSPTransportField; | 60 } RTSPTransportField; |
61 | 61 |
62 typedef struct RTSPHeader { | 62 typedef struct RTSPMessageHeader { |
63 int content_length; | 63 int content_length; |
64 enum RTSPStatusCode status_code; /**< response code from server */ | 64 enum RTSPStatusCode status_code; /**< response code from server */ |
65 int nb_transports; | 65 int nb_transports; |
66 /** in AV_TIME_BASE unit, AV_NOPTS_VALUE if not used */ | 66 /** in AV_TIME_BASE unit, AV_NOPTS_VALUE if not used */ |
67 int64_t range_start, range_end; | 67 int64_t range_start, range_end; |
68 RTSPTransportField transports[RTSP_MAX_TRANSPORTS]; | 68 RTSPTransportField transports[RTSP_MAX_TRANSPORTS]; |
69 int seq; /**< sequence number */ | 69 int seq; /**< sequence number */ |
70 char session_id[512]; | 70 char session_id[512]; |
71 char real_challenge[64]; /**< the RealChallenge1 field from the server */ | 71 char real_challenge[64]; /**< the RealChallenge1 field from the server */ |
72 char server[64]; | 72 char server[64]; |
73 } RTSPHeader; | 73 } RTSPMessageHeader; |
74 | 74 |
75 enum RTSPClientState { | 75 enum RTSPClientState { |
76 RTSP_STATE_IDLE, | 76 RTSP_STATE_IDLE, |
77 RTSP_STATE_PLAYING, | 77 RTSP_STATE_PLAYING, |
78 RTSP_STATE_PAUSED, | 78 RTSP_STATE_PAUSED, |
124 RTPDynamicProtocolHandler *dynamic_handler; ///< Only valid if it's a dynamic protocol. (This is the handler structure) | 124 RTPDynamicProtocolHandler *dynamic_handler; ///< Only valid if it's a dynamic protocol. (This is the handler structure) |
125 PayloadContext *dynamic_protocol_context; ///< Only valid if it's a dynamic protocol. (This is any private data associated with the dynamic protocol) | 125 PayloadContext *dynamic_protocol_context; ///< Only valid if it's a dynamic protocol. (This is any private data associated with the dynamic protocol) |
126 } RTSPStream; | 126 } RTSPStream; |
127 | 127 |
128 int rtsp_init(void); | 128 int rtsp_init(void); |
129 void rtsp_parse_line(RTSPHeader *reply, const char *buf); | 129 void rtsp_parse_line(RTSPMessageHeader *reply, const char *buf); |
130 | 130 |
131 #if LIBAVFORMAT_VERSION_INT < (53 << 16) | 131 #if LIBAVFORMAT_VERSION_INT < (53 << 16) |
132 extern int rtsp_default_protocols; | 132 extern int rtsp_default_protocols; |
133 #endif | 133 #endif |
134 extern int rtsp_rtp_port_min; | 134 extern int rtsp_rtp_port_min; |