SmolRTSP 0.1.3
A small, portable, extensible RTSP 1.0 implementation in C99
Loading...
Searching...
No Matches
rtsp_version.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <smolrtsp/priv/compiler_attrs.h>
10#include <smolrtsp/writer.h>
11
12#include <stdbool.h>
13#include <stdint.h>
14
15#include <slice99.h>
16
20typedef struct {
24 uint8_t major;
25
29 uint8_t minor;
31
44 const SmolRTSP_RtspVersion *restrict self,
45 SmolRTSP_Writer w) SMOLRTSP_PRIV_MUST_USE;
46
52SmolRTSP_ParseResult SmolRTSP_RtspVersion_parse(
53 SmolRTSP_RtspVersion *restrict self,
54 CharSlice99 input) SMOLRTSP_PRIV_MUST_USE;
55
63 const SmolRTSP_RtspVersion *restrict lhs,
64 const SmolRTSP_RtspVersion *restrict rhs) SMOLRTSP_PRIV_MUST_USE;
Possible parsing errors.
ssize_t SmolRTSP_RtspVersion_serialize(const SmolRTSP_RtspVersion *restrict self, SmolRTSP_Writer w) SMOLRTSP_PRIV_MUST_USE
Serialises self into w.
SmolRTSP_ParseResult SmolRTSP_RtspVersion_parse(SmolRTSP_RtspVersion *restrict self, CharSlice99 input) SMOLRTSP_PRIV_MUST_USE
Parses data to self.
bool SmolRTSP_RtspVersion_eq(const SmolRTSP_RtspVersion *restrict lhs, const SmolRTSP_RtspVersion *restrict rhs) SMOLRTSP_PRIV_MUST_USE
Tests lhs and rhs for equality.
An RTSP version.
Definition rtsp_version.h:20
uint8_t major
The major number.
Definition rtsp_version.h:24
uint8_t minor
The minor number.
Definition rtsp_version.h:29
The writer interface.