From: spdfrk Date: Mon, 14 Mar 2016 22:46:29 +0000 (+0100) Subject: Move rtsp_get_parameter code from http.h to rtsp.c X-Git-Tag: v4.2.1~855 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8542ebbe963816695e888df7e030643e5536f8d4;p=thirdparty%2Ftvheadend.git Move rtsp_get_parameter code from http.h to rtsp.c --- diff --git a/src/http.h b/src/http.h index 3fe7dc04b..aba1343cd 100644 --- a/src/http.h +++ b/src/http.h @@ -426,12 +426,7 @@ rtsp_teardown( http_client_t *hc, const char *path, const char *query ) { return rtsp_send(hc, RTSP_CMD_TEARDOWN, path, query, NULL); } -static inline int rtsp_get_parameter( http_client_t *hc, const char *parameter ) { - http_arg_list_t hdr; - http_arg_init(&hdr); - http_arg_set(&hdr, "Content-Type", "text/parameters"); - return rtsp_send_ext(hc, RTSP_CMD_GET_PARAMETER, NULL, NULL, &hdr, parameter, strlen(parameter)); -} +int rtsp_get_parameter( http_client_t *hc, const char *parameter ); int rtsp_describe_decode( http_client_t *hc ); static inline int diff --git a/src/rtsp.c b/src/rtsp.c index 78c990ec9..29f010997 100644 --- a/src/rtsp.c +++ b/src/rtsp.c @@ -266,3 +266,11 @@ rtsp_describe_decode( http_client_t *hc ) printf("data:\n%s\n", hc->hc_data); return HTTP_CON_OK; } + +int +rtsp_get_parameter( http_client_t *hc, const char *parameter ) { + http_arg_list_t hdr; + http_arg_init(&hdr); + http_arg_set(&hdr, "Content-Type", "text/parameters"); + return rtsp_send_ext(hc, RTSP_CMD_GET_PARAMETER, NULL, NULL, &hdr, parameter, strlen(parameter)); +}