SmolRTSP  0.1.3
A small, portable, extensible RTSP 1.0 implementation in C99
request_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>
10 #include <smolrtsp/types/method.h>
13 
14 #include <stdbool.h>
15 
16 #include <slice99.h>
17 
21 typedef struct {
26 
31 
37 
50  const SmolRTSP_RequestLine *restrict self,
51  SmolRTSP_Writer w) SMOLRTSP_PRIV_MUST_USE;
52 
58 SmolRTSP_ParseResult SmolRTSP_RequestLine_parse(
59  SmolRTSP_RequestLine *restrict self,
60  CharSlice99 input) SMOLRTSP_PRIV_MUST_USE;
61 
69  const SmolRTSP_RequestLine *restrict lhs,
70  const SmolRTSP_RequestLine *restrict rhs) SMOLRTSP_PRIV_MUST_USE;
Possible parsing errors.
An RTSP method.
CharSlice99 SmolRTSP_Method
An RTSP method.
Definition: method.h:18
ssize_t SmolRTSP_RequestLine_serialize(const SmolRTSP_RequestLine *restrict self, SmolRTSP_Writer w) SMOLRTSP_PRIV_MUST_USE
Serialises self into w.
SmolRTSP_ParseResult SmolRTSP_RequestLine_parse(SmolRTSP_RequestLine *restrict self, CharSlice99 input) SMOLRTSP_PRIV_MUST_USE
Parses data to self.
bool SmolRTSP_RequestLine_eq(const SmolRTSP_RequestLine *restrict lhs, const SmolRTSP_RequestLine *restrict rhs) SMOLRTSP_PRIV_MUST_USE
Tests lhs and rhs for equality.
An RTSP request URI.
CharSlice99 SmolRTSP_RequestUri
An RTSP request URI.
Definition: request_uri.h:18
An RTSP version.
An RTSP request line.
Definition: request_line.h:21
SmolRTSP_Method method
The method used.
Definition: request_line.h:25
SmolRTSP_RtspVersion version
The RTSP version used.
Definition: request_line.h:35
SmolRTSP_RequestUri uri
The request URI.
Definition: request_line.h:30
An RTSP version.
Definition: rtsp_version.h:20