SmolRTSP  0.1.3
A small, portable, extensible RTSP 1.0 implementation in C99
message_body.h File Reference

An RTSP message body. More...

#include <smolrtsp/priv/compiler_attrs.h>
#include <smolrtsp/types/error.h>
#include <stdbool.h>
#include <stddef.h>
#include <slice99.h>
Include dependency graph for message_body.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef CharSlice99 SmolRTSP_MessageBody
 An RTSP message body.
 

Functions

SmolRTSP_ParseResult SmolRTSP_MessageBody_parse (SmolRTSP_MessageBody *restrict self, CharSlice99 input, size_t content_length) SMOLRTSP_PRIV_MUST_USE
 Parses data to self. More...
 
SmolRTSP_MessageBody SmolRTSP_MessageBody_empty (void) SMOLRTSP_PRIV_MUST_USE
 Returns an empty message body.
 
bool SmolRTSP_MessageBody_eq (const SmolRTSP_MessageBody *restrict lhs, const SmolRTSP_MessageBody *restrict rhs) SMOLRTSP_PRIV_MUST_USE
 Tests lhs and rhs for equality. More...
 

Detailed Description

An RTSP message body.

Function Documentation

◆ SmolRTSP_MessageBody_eq()

bool SmolRTSP_MessageBody_eq ( const SmolRTSP_MessageBody *restrict  lhs,
const SmolRTSP_MessageBody *restrict  rhs 
)

Tests lhs and rhs for equality.

Precondition
lhs != NULL
rhs != NULL

◆ SmolRTSP_MessageBody_parse()

SmolRTSP_ParseResult SmolRTSP_MessageBody_parse ( SmolRTSP_MessageBody *restrict  self,
CharSlice99  input,
size_t  content_length 
)

Parses data to self.

Precondition
self != NULL