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

An RTSP request line. More...

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

Go to the source code of this file.

Data Structures

struct  SmolRTSP_RequestLine
 An RTSP request line. More...
 

Functions

ssize_t SmolRTSP_RequestLine_serialize (const SmolRTSP_RequestLine *restrict self, SmolRTSP_Writer w) SMOLRTSP_PRIV_MUST_USE
 Serialises self into w. More...
 
SmolRTSP_ParseResult SmolRTSP_RequestLine_parse (SmolRTSP_RequestLine *restrict self, CharSlice99 input) SMOLRTSP_PRIV_MUST_USE
 Parses data to self. More...
 
bool SmolRTSP_RequestLine_eq (const SmolRTSP_RequestLine *restrict lhs, const SmolRTSP_RequestLine *restrict rhs) SMOLRTSP_PRIV_MUST_USE
 Tests lhs and rhs for equality. More...
 

Detailed Description

An RTSP request line.

Function Documentation

◆ SmolRTSP_RequestLine_eq()

bool SmolRTSP_RequestLine_eq ( const SmolRTSP_RequestLine *restrict  lhs,
const SmolRTSP_RequestLine *restrict  rhs 
)

Tests lhs and rhs for equality.

Precondition
lhs != NULL
rhs != NULL

◆ SmolRTSP_RequestLine_parse()

SmolRTSP_ParseResult SmolRTSP_RequestLine_parse ( SmolRTSP_RequestLine *restrict  self,
CharSlice99  input 
)

Parses data to self.

Precondition
self != NULL

◆ SmolRTSP_RequestLine_serialize()

ssize_t SmolRTSP_RequestLine_serialize ( const SmolRTSP_RequestLine *restrict  self,
SmolRTSP_Writer  w 
)

Serialises self into w.

Parameters
[in]selfThe instance to be serialised.
[in]wThe writer to be provided with serialised data.
Returns
The number of bytes written or a negative value on error.
Precondition
self != NULL
w.self && w.vptr