SmolRTSP  0.1.3
A small, portable, extensible RTSP 1.0 implementation in C99
response_line.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <smolrtsp/priv/compiler_attrs.h>
9 #include <smolrtsp/types/error.h>
13 
14 #include <stdbool.h>
15 
16 #include <slice99.h>
17 
21 typedef struct {
26 
31 
37 
50  const SmolRTSP_ResponseLine *restrict self,
51  SmolRTSP_Writer w) SMOLRTSP_PRIV_MUST_USE;
52 
58 SmolRTSP_ParseResult SmolRTSP_ResponseLine_parse(
59  SmolRTSP_ResponseLine *restrict self,
60  CharSlice99 input) SMOLRTSP_PRIV_MUST_USE;
61 
69  const SmolRTSP_ResponseLine *restrict lhs,
70  const SmolRTSP_ResponseLine *restrict rhs) SMOLRTSP_PRIV_MUST_USE;
Possible parsing errors.
An RTSP reason phrase.
CharSlice99 SmolRTSP_ReasonPhrase
An RTSP reason phrase.
Definition: reason_phrase.h:18
ssize_t SmolRTSP_ResponseLine_serialize(const SmolRTSP_ResponseLine *restrict self, SmolRTSP_Writer w) SMOLRTSP_PRIV_MUST_USE
Serialises self into w.
bool SmolRTSP_ResponseLine_eq(const SmolRTSP_ResponseLine *restrict lhs, const SmolRTSP_ResponseLine *restrict rhs) SMOLRTSP_PRIV_MUST_USE
Tests lhs and rhs for equality.
SmolRTSP_ParseResult SmolRTSP_ResponseLine_parse(SmolRTSP_ResponseLine *restrict self, CharSlice99 input) SMOLRTSP_PRIV_MUST_USE
Parses data to self.
An RTSP version.
An RTSP status code.
uint16_t SmolRTSP_StatusCode
An RTSP status code.
Definition: status_code.h:20
An RTSP response line.
Definition: response_line.h:21
SmolRTSP_StatusCode code
The status code.
Definition: response_line.h:30
SmolRTSP_ReasonPhrase reason
The reason phrase.
Definition: response_line.h:35
SmolRTSP_RtspVersion version
The RTSP version used.
Definition: response_line.h:25
An RTSP version.
Definition: rtsp_version.h:20