Compy 0.2.0
A lightweight RTSP 1.0 server library for embedded systems
Loading...
Searching...
No Matches
method.h File Reference

An RTSP method. More...

#include <compy/priv/compiler_attrs.h>
#include <compy/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 COMPY_METHOD_OPTIONS   (CharSlice99_from_str("OPTIONS"))
 OPTIONS.
 
#define COMPY_METHOD_DESCRIBE   (CharSlice99_from_str("DESCRIBE"))
 DESCRIBE.
 
#define COMPY_METHOD_ANNOUNCE   (CharSlice99_from_str("ANNOUNCE"))
 ANNOUNCE.
 
#define COMPY_METHOD_SETUP   (CharSlice99_from_str("SETUP"))
 SETUP.
 
#define COMPY_METHOD_PLAY   (CharSlice99_from_str("PLAY"))
 PLAY.
 
#define COMPY_METHOD_PAUSE   (CharSlice99_from_str("PAUSE"))
 PAUSE.
 
#define COMPY_METHOD_TEARDOWN   (CharSlice99_from_str("TEARDOWN"))
 TEARDOWN.
 
#define COMPY_METHOD_GET_PARAMETER   (CharSlice99_from_str("GET_PARAMETER"))
 GET_PARAMETER.
 
#define COMPY_METHOD_SET_PARAMETER   (CharSlice99_from_str("SET_PARAMETER"))
 SET_PARAMETER.
 
#define COMPY_METHOD_REDIRECT   (CharSlice99_from_str("REDIRECT"))
 REDIRECT.
 
#define COMPY_METHOD_RECORD   (CharSlice99_from_str("RECORD"))
 RECORD.
 

Typedefs

typedef CharSlice99 Compy_Method
 An RTSP method.
 

Functions

Compy_ParseResult Compy_Method_parse (Compy_Method *restrict self, CharSlice99 input) COMPY_PRIV_MUST_USE
 Parses data to self.
 
bool Compy_Method_eq (const Compy_Method *restrict lhs, const Compy_Method *restrict rhs) COMPY_PRIV_MUST_USE
 Tests lhs and rhs for equality.
 

Detailed Description

An RTSP method.

Function Documentation

◆ Compy_Method_eq()

bool Compy_Method_eq ( const Compy_Method *restrict  lhs,
const Compy_Method *restrict  rhs 
)

Tests lhs and rhs for equality.

Precondition
lhs != NULL
rhs != NULL

◆ Compy_Method_parse()

Compy_ParseResult Compy_Method_parse ( Compy_Method *restrict  self,
CharSlice99  input 
)

Parses data to self.

Precondition
self != NULL