Compy 0.2.0
A lightweight RTSP 1.0 server library for embedded systems
Loading...
Searching...
No Matches
rtsp_version.h File Reference

An RTSP version. More...

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

Go to the source code of this file.

Data Structures

struct  Compy_RtspVersion
 An RTSP version. More...
 

Functions

ssize_t Compy_RtspVersion_serialize (const Compy_RtspVersion *restrict self, Compy_Writer w) COMPY_PRIV_MUST_USE
 Serialises self into w.
 
Compy_ParseResult Compy_RtspVersion_parse (Compy_RtspVersion *restrict self, CharSlice99 input) COMPY_PRIV_MUST_USE
 Parses data to self.
 
bool Compy_RtspVersion_eq (const Compy_RtspVersion *restrict lhs, const Compy_RtspVersion *restrict rhs) COMPY_PRIV_MUST_USE
 Tests lhs and rhs for equality.
 

Detailed Description

An RTSP version.

Function Documentation

◆ Compy_RtspVersion_eq()

bool Compy_RtspVersion_eq ( const Compy_RtspVersion *restrict  lhs,
const Compy_RtspVersion *restrict  rhs 
)

Tests lhs and rhs for equality.

Precondition
lhs != NULL
rhs != NULL

◆ Compy_RtspVersion_parse()

Compy_ParseResult Compy_RtspVersion_parse ( Compy_RtspVersion *restrict  self,
CharSlice99  input 
)

Parses data to self.

Precondition
self != NULL

◆ Compy_RtspVersion_serialize()

ssize_t Compy_RtspVersion_serialize ( const Compy_RtspVersion *restrict  self,
Compy_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