15 #include <interface99.h>
39 #define SmolRTSP_Controller_IFACE \
46 void, options, VSelf99, SmolRTSP_Context *ctx, \
47 const SmolRTSP_Request *req) \
54 void, describe, VSelf99, SmolRTSP_Context *ctx, \
55 const SmolRTSP_Request *req) \
62 void, setup, VSelf99, SmolRTSP_Context *ctx, \
63 const SmolRTSP_Request *req) \
70 void, play, VSelf99, SmolRTSP_Context *ctx, \
71 const SmolRTSP_Request *req) \
78 void, teardown, VSelf99, SmolRTSP_Context *ctx, \
79 const SmolRTSP_Request *req) \
85 void, unknown, VSelf99, SmolRTSP_Context *ctx, \
86 const SmolRTSP_Request *req) \
92 SmolRTSP_ControlFlow, before, VSelf99, SmolRTSP_Context *ctx, \
93 const SmolRTSP_Request *req) \
99 void, after, VSelf99, ssize_t ret, SmolRTSP_Context *ctx, \
100 const SmolRTSP_Request *req)
105 #define SmolRTSP_Controller_EXTENDS (SmolRTSP_Droppable)
144 SmolRTSP_Writer conn, SmolRTSP_Controller controller,
SmolRTSP_ControlFlow
Whether to stop or continue some processing.
Definition: controller.h:20
@ SmolRTSP_ControlFlow_Continue
Continue processing.
Definition: controller.h:29
@ SmolRTSP_ControlFlow_Break
Break processing.
Definition: controller.h:24
interface99(SmolRTSP_Controller)
Defines the SmolRTSP_Controller interface.
void smolrtsp_dispatch(SmolRTSP_Writer conn, SmolRTSP_Controller controller, const SmolRTSP_Request *restrict req)
Dispatches an incoming request to controller.
An RTSP request.
Definition: request.h:21