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

An RTSP reason phrase. More...

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

Go to the source code of this file.

Typedefs

typedef CharSlice99 SmolRTSP_ReasonPhrase
 An RTSP reason phrase.
 

Functions

SmolRTSP_ParseResult SmolRTSP_ReasonPhrase_parse (SmolRTSP_ReasonPhrase *restrict self, CharSlice99 data) SMOLRTSP_PRIV_MUST_USE
 Parses data to self. More...
 
bool SmolRTSP_ReasonPhrase_eq (const SmolRTSP_ReasonPhrase *restrict lhs, const SmolRTSP_ReasonPhrase *restrict rhs) SMOLRTSP_PRIV_MUST_USE
 Tests lhs and rhs for equality. More...
 

Detailed Description

An RTSP reason phrase.

Function Documentation

◆ SmolRTSP_ReasonPhrase_eq()

bool SmolRTSP_ReasonPhrase_eq ( const SmolRTSP_ReasonPhrase *restrict  lhs,
const SmolRTSP_ReasonPhrase *restrict  rhs 
)

Tests lhs and rhs for equality.

Precondition
lhs != NULL
rhs != NULL

◆ SmolRTSP_ReasonPhrase_parse()

SmolRTSP_ParseResult SmolRTSP_ReasonPhrase_parse ( SmolRTSP_ReasonPhrase *restrict  self,
CharSlice99  data 
)

Parses data to self.

Precondition
self != NULL