Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move rtsp_get_parameter code from http.h to rtsp.c
  • Loading branch information
spdfrk authored and perexg committed Mar 16, 2016
1 parent 0e76557 commit 8542ebb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/http.h
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/rtsp.c
Expand Up @@ -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));
}

0 comments on commit 8542ebb

Please sign in to comment.