SmolRTSP  0.1.3
A small, portable, extensible RTSP 1.0 implementation in C99
method.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <smolrtsp/priv/compiler_attrs.h>
9 #include <smolrtsp/types/error.h>
10 
11 #include <stdbool.h>
12 
13 #include <slice99.h>
14 
18 typedef CharSlice99 SmolRTSP_Method;
19 
25 SmolRTSP_ParseResult SmolRTSP_Method_parse(
26  SmolRTSP_Method *restrict self, CharSlice99 input) SMOLRTSP_PRIV_MUST_USE;
27 
35  const SmolRTSP_Method *restrict lhs,
36  const SmolRTSP_Method *restrict rhs) SMOLRTSP_PRIV_MUST_USE;
37 
41 #define SMOLRTSP_METHOD_OPTIONS (CharSlice99_from_str("OPTIONS"))
42 
46 #define SMOLRTSP_METHOD_DESCRIBE (CharSlice99_from_str("DESCRIBE"))
47 
51 #define SMOLRTSP_METHOD_ANNOUNCE (CharSlice99_from_str("ANNOUNCE"))
52 
56 #define SMOLRTSP_METHOD_SETUP (CharSlice99_from_str("SETUP"))
57 
61 #define SMOLRTSP_METHOD_PLAY (CharSlice99_from_str("PLAY"))
62 
66 #define SMOLRTSP_METHOD_PAUSE (CharSlice99_from_str("PAUSE"))
67 
71 #define SMOLRTSP_METHOD_TEARDOWN (CharSlice99_from_str("TEARDOWN"))
72 
76 #define SMOLRTSP_METHOD_GET_PARAMETER (CharSlice99_from_str("GET_PARAMETER"))
77 
81 #define SMOLRTSP_METHOD_SET_PARAMETER (CharSlice99_from_str("SET_PARAMETER"))
82 
86 #define SMOLRTSP_METHOD_REDIRECT (CharSlice99_from_str("REDIRECT"))
87 
91 #define SMOLRTSP_METHOD_RECORD (CharSlice99_from_str("RECORD"))
Possible parsing errors.
bool SmolRTSP_Method_eq(const SmolRTSP_Method *restrict lhs, const SmolRTSP_Method *restrict rhs) SMOLRTSP_PRIV_MUST_USE
Tests lhs and rhs for equality.
CharSlice99 SmolRTSP_Method
An RTSP method.
Definition: method.h:18
SmolRTSP_ParseResult SmolRTSP_Method_parse(SmolRTSP_Method *restrict self, CharSlice99 input) SMOLRTSP_PRIV_MUST_USE
Parses data to self.