SmolRTSP  0.1.3
A small, portable, extensible RTSP 1.0 implementation in C99
method.h File Reference

An RTSP method. More...

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

Go to the source code of this file.

Macros

#define SMOLRTSP_METHOD_OPTIONS   (CharSlice99_from_str("OPTIONS"))
 OPTIONS.
 
#define SMOLRTSP_METHOD_DESCRIBE   (CharSlice99_from_str("DESCRIBE"))
 DESCRIBE.
 
#define SMOLRTSP_METHOD_ANNOUNCE   (CharSlice99_from_str("ANNOUNCE"))
 ANNOUNCE.
 
#define SMOLRTSP_METHOD_SETUP   (CharSlice99_from_str("SETUP"))
 SETUP.
 
#define SMOLRTSP_METHOD_PLAY   (CharSlice99_from_str("PLAY"))
 PLAY.
 
#define SMOLRTSP_METHOD_PAUSE   (CharSlice99_from_str("PAUSE"))
 PAUSE.
 
#define SMOLRTSP_METHOD_TEARDOWN   (CharSlice99_from_str("TEARDOWN"))
 TEARDOWN.
 
#define SMOLRTSP_METHOD_GET_PARAMETER   (CharSlice99_from_str("GET_PARAMETER"))
 GET_PARAMETER.
 
#define SMOLRTSP_METHOD_SET_PARAMETER   (CharSlice99_from_str("SET_PARAMETER"))
 SET_PARAMETER.
 
#define SMOLRTSP_METHOD_REDIRECT   (CharSlice99_from_str("REDIRECT"))
 REDIRECT.
 
#define SMOLRTSP_METHOD_RECORD   (CharSlice99_from_str("RECORD"))
 RECORD.
 

Typedefs

typedef CharSlice99 SmolRTSP_Method
 An RTSP method.
 

Functions

SmolRTSP_ParseResult SmolRTSP_Method_parse (SmolRTSP_Method *restrict self, CharSlice99 input) SMOLRTSP_PRIV_MUST_USE
 Parses data to self. More...
 
bool SmolRTSP_Method_eq (const SmolRTSP_Method *restrict lhs, const SmolRTSP_Method *restrict rhs) SMOLRTSP_PRIV_MUST_USE
 Tests lhs and rhs for equality. More...
 

Detailed Description

An RTSP method.

Function Documentation

◆ SmolRTSP_Method_eq()

bool SmolRTSP_Method_eq ( const SmolRTSP_Method *restrict  lhs,
const SmolRTSP_Method *restrict  rhs 
)

Tests lhs and rhs for equality.

Precondition
lhs != NULL
rhs != NULL

◆ SmolRTSP_Method_parse()

SmolRTSP_ParseResult SmolRTSP_Method_parse ( SmolRTSP_Method *restrict  self,
CharSlice99  input 
)

Parses data to self.

Precondition
self != NULL