mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-15 08:45:54 -04:00
[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 */
|
/* Response codes */
|
||||||
#define RTSP_OK 200
|
#define RTSP_OK 200
|
||||||
#define RTSP_UNAUTHORIZED 401
|
#define RTSP_UNAUTHORIZED 401
|
||||||
|
#define RTSP_FORBIDDEN 403
|
||||||
|
|
||||||
struct evrtsp_connection;
|
struct evrtsp_connection;
|
||||||
|
|
||||||
@ -62,6 +63,7 @@ enum evrtsp_cmd_type {
|
|||||||
EVRTSP_REQ_SET_PARAMETER,
|
EVRTSP_REQ_SET_PARAMETER,
|
||||||
EVRTSP_REQ_FLUSH,
|
EVRTSP_REQ_FLUSH,
|
||||||
EVRTSP_REQ_TEARDOWN,
|
EVRTSP_REQ_TEARDOWN,
|
||||||
|
EVRTSP_REQ_POST,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum evrtsp_request_kind { EVRTSP_REQUEST, EVRTSP_RESPONSE };
|
enum evrtsp_request_kind { EVRTSP_REQUEST, EVRTSP_RESPONSE };
|
||||||
|
@ -260,6 +260,10 @@ evrtsp_method(enum evrtsp_cmd_type type)
|
|||||||
method = "TEARDOWN";
|
method = "TEARDOWN";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case EVRTSP_REQ_POST:
|
||||||
|
method = "POST";
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
method = NULL;
|
method = NULL;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user