SmolRTSP  0.1.3
A small, portable, extensible RTSP 1.0 implementation in C99
message_body.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 
11 #include <stdbool.h>
12 #include <stddef.h>
13 
14 #include <slice99.h>
15 
19 typedef CharSlice99 SmolRTSP_MessageBody;
20 
26 SmolRTSP_ParseResult SmolRTSP_MessageBody_parse(
27  SmolRTSP_MessageBody *restrict self, CharSlice99 input,
28  size_t content_length) SMOLRTSP_PRIV_MUST_USE;
29 
33 SmolRTSP_MessageBody SmolRTSP_MessageBody_empty(void) SMOLRTSP_PRIV_MUST_USE;
34 
42  const SmolRTSP_MessageBody *restrict lhs,
43  const SmolRTSP_MessageBody *restrict rhs) SMOLRTSP_PRIV_MUST_USE;
Possible parsing errors.
SmolRTSP_MessageBody SmolRTSP_MessageBody_empty(void) SMOLRTSP_PRIV_MUST_USE
Returns an empty message body.
CharSlice99 SmolRTSP_MessageBody
An RTSP message body.
Definition: message_body.h:19
SmolRTSP_ParseResult SmolRTSP_MessageBody_parse(SmolRTSP_MessageBody *restrict self, CharSlice99 input, size_t content_length) SMOLRTSP_PRIV_MUST_USE
Parses data to self.
bool SmolRTSP_MessageBody_eq(const SmolRTSP_MessageBody *restrict lhs, const SmolRTSP_MessageBody *restrict rhs) SMOLRTSP_PRIV_MUST_USE
Tests lhs and rhs for equality.