Compy 0.2.0
A lightweight RTSP 1.0 server library for embedded systems
Loading...
Searching...
No Matches
response.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <compy/priv/compiler_attrs.h>
9#include <compy/types/error.h>
13
14#include <stdbool.h>
15
16#include <slice99.h>
17
42
46Compy_Response Compy_Response_uninit(void) COMPY_PRIV_MUST_USE;
47
65 const Compy_Response *restrict self, Compy_Writer w) COMPY_PRIV_MUST_USE;
66
72Compy_ParseResult Compy_Response_parse(
73 Compy_Response *restrict self, CharSlice99 input) COMPY_PRIV_MUST_USE;
74
82 const Compy_Response *restrict lhs,
83 const Compy_Response *restrict rhs) COMPY_PRIV_MUST_USE;
Possible parsing errors.
An RTSP header map.
An RTSP message body.
CharSlice99 Compy_MessageBody
An RTSP message body.
Definition message_body.h:19
bool Compy_Response_eq(const Compy_Response *restrict lhs, const Compy_Response *restrict rhs) COMPY_PRIV_MUST_USE
Tests lhs and rhs for equality.
Definition response.c:121
Compy_ParseResult Compy_Response_parse(Compy_Response *restrict self, CharSlice99 input) COMPY_PRIV_MUST_USE
Parses data to self.
Definition response.c:56
Compy_Response Compy_Response_uninit(void) COMPY_PRIV_MUST_USE
Returns an RTSP response suitable for being parsed.
Definition response.c:13
ssize_t Compy_Response_serialize(const Compy_Response *restrict self, Compy_Writer w) COMPY_PRIV_MUST_USE
Serialises self into w.
Definition response.c:21
An RTSP response line.
An RTSP header map.
Definition header_map.h:37
An RTSP response line.
Definition response_line.h:21
An RTSP response.
Definition response.h:21
uint32_t cseq
The sequence number for an RTSP request/response pair.
Definition response.h:40
Compy_MessageBody body
The message body.
Definition response.h:35
Compy_HeaderMap header_map
The header map.
Definition response.h:30
Compy_ResponseLine start_line
The response line.
Definition response.h:25