SmolRTSP 0.1.3
A small, portable, extensible RTSP 1.0 implementation in C99
Loading...
Searching...
No Matches
response.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <smolrtsp/priv/compiler_attrs.h>
13
14#include <stdbool.h>
15
16#include <slice99.h>
17
42
46SmolRTSP_Response SmolRTSP_Response_uninit(void) SMOLRTSP_PRIV_MUST_USE;
47
65 const SmolRTSP_Response *restrict self,
66 SmolRTSP_Writer w) SMOLRTSP_PRIV_MUST_USE;
67
73SmolRTSP_ParseResult SmolRTSP_Response_parse(
74 SmolRTSP_Response *restrict self, CharSlice99 input) SMOLRTSP_PRIV_MUST_USE;
75
83 const SmolRTSP_Response *restrict lhs,
84 const SmolRTSP_Response *restrict rhs) SMOLRTSP_PRIV_MUST_USE;
Possible parsing errors.
An RTSP header map.
An RTSP message body.
CharSlice99 SmolRTSP_MessageBody
An RTSP message body.
Definition message_body.h:19
SmolRTSP_ParseResult SmolRTSP_Response_parse(SmolRTSP_Response *restrict self, CharSlice99 input) SMOLRTSP_PRIV_MUST_USE
Parses data to self.
bool SmolRTSP_Response_eq(const SmolRTSP_Response *restrict lhs, const SmolRTSP_Response *restrict rhs) SMOLRTSP_PRIV_MUST_USE
Tests lhs and rhs for equality.
SmolRTSP_Response SmolRTSP_Response_uninit(void) SMOLRTSP_PRIV_MUST_USE
Returns an RTSP response suitable for being parsed.
ssize_t SmolRTSP_Response_serialize(const SmolRTSP_Response *restrict self, SmolRTSP_Writer w) SMOLRTSP_PRIV_MUST_USE
Serialises self into w.
An RTSP response line.
An RTSP header map.
Definition header_map.h:37
An RTSP response line.
Definition response_line.h:21
An RTSP response.
Definition response.h:21
SmolRTSP_ResponseLine start_line
The response line.
Definition response.h:25
uint32_t cseq
The sequence number for an RTSP request/response pair.
Definition response.h:40
SmolRTSP_HeaderMap header_map
The header map.
Definition response.h:30
SmolRTSP_MessageBody body
The message body.
Definition response.h:35