|
Compy 0.2.0
A lightweight RTSP 1.0 server library for embedded systems
|
An RTSP response. More...
#include <compy/priv/compiler_attrs.h>#include <compy/types/error.h>#include <compy/types/header_map.h>#include <compy/types/message_body.h>#include <compy/types/response_line.h>#include <stdbool.h>#include <slice99.h>

Go to the source code of this file.
Data Structures | |
| struct | Compy_Response |
| An RTSP response. More... | |
Functions | |
| Compy_Response | Compy_Response_uninit (void) COMPY_PRIV_MUST_USE |
| Returns an RTSP response suitable for being parsed. | |
| ssize_t | Compy_Response_serialize (const Compy_Response *restrict self, Compy_Writer w) COMPY_PRIV_MUST_USE |
Serialises self into w. | |
| Compy_ParseResult | Compy_Response_parse (Compy_Response *restrict self, CharSlice99 input) COMPY_PRIV_MUST_USE |
Parses data to self. | |
| bool | Compy_Response_eq (const Compy_Response *restrict lhs, const Compy_Response *restrict rhs) COMPY_PRIV_MUST_USE |
Tests lhs and rhs for equality. | |
An RTSP response.
| bool Compy_Response_eq | ( | const Compy_Response *restrict | lhs, |
| const Compy_Response *restrict | rhs | ||
| ) |
Tests lhs and rhs for equality.
lhs != NULL rhs != NULL | Compy_ParseResult Compy_Response_parse | ( | Compy_Response *restrict | self, |
| CharSlice99 | input | ||
| ) |
Parses data to self.
self != NULL | ssize_t Compy_Response_serialize | ( | const Compy_Response *restrict | self, |
| Compy_Writer | w | ||
| ) |
Serialises self into w.
If CSeq and Content-Length are not present in Compy_Response.header_map, they will be taken from Compy_Response.cseq and Compy_Response.body, respectively, and serialised as first headers automatically.
| [in] | self | The instance to be serialised. |
| [in] | w | The writer to be provided with serialised data. |
self != NULL w.self && w.vptr