SmolRTSP 0.2.0
A small, portable, extensible RTSP 1.0 implementation in C99
Loading...
Searching...
No Matches
message_body.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <smolrtsp/priv/compiler_attrs.h>
10
11#include <stdbool.h>
12#include <stddef.h>
13
14#include <slice99.h>
15
28#ifndef SMOLRTSP_MAX_CONTENT_LENGTH
29#define SMOLRTSP_MAX_CONTENT_LENGTH 65536
30#endif
31
35typedef CharSlice99 SmolRTSP_MessageBody;
36
42SmolRTSP_ParseResult SmolRTSP_MessageBody_parse(
43 SmolRTSP_MessageBody *restrict self, CharSlice99 input,
44 size_t content_length) SMOLRTSP_PRIV_MUST_USE;
45
50
58 const SmolRTSP_MessageBody *restrict lhs,
59 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:35
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.