[evrtsp] Add POST rtsp method - used for device verification
This commit is contained in:
parent
0e9bca9e3d
commit
736979a9a2
|
@ -46,6 +46,7 @@ extern "C" {
|
|||
/* Response codes */
|
||||
#define RTSP_OK 200
|
||||
#define RTSP_UNAUTHORIZED 401
|
||||
#define RTSP_FORBIDDEN 403
|
||||
|
||||
struct evrtsp_connection;
|
||||
|
||||
|
@ -62,6 +63,7 @@ enum evrtsp_cmd_type {
|
|||
EVRTSP_REQ_SET_PARAMETER,
|
||||
EVRTSP_REQ_FLUSH,
|
||||
EVRTSP_REQ_TEARDOWN,
|
||||
EVRTSP_REQ_POST,
|
||||
};
|
||||
|
||||
enum evrtsp_request_kind { EVRTSP_REQUEST, EVRTSP_RESPONSE };
|
||||
|
|
|
@ -260,6 +260,10 @@ evrtsp_method(enum evrtsp_cmd_type type)
|
|||
method = "TEARDOWN";
|
||||
break;
|
||||
|
||||
case EVRTSP_REQ_POST:
|
||||
method = "POST";
|
||||
break;
|
||||
|
||||
default:
|
||||
method = NULL;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue