[evrtsp] Add POST rtsp method - used for device verification

This commit is contained in:
ejurgensen 2017-06-18 01:31:23 +02:00
parent 0e9bca9e3d
commit 736979a9a2
2 changed files with 6 additions and 0 deletions

View File

@ -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 };

View File

@ -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;