Move code around, no functional changes

This commit is contained in:
Julien BLACHE 2010-09-25 19:49:31 +02:00
parent 6f642f487b
commit d0e0700a13
1 changed files with 20 additions and 20 deletions

View File

@ -664,26 +664,6 @@ raop_crypt_encrypt_aes_key_base64(void)
/* Helpers */
static void
raop_add_headers(struct raop_session *rs, struct evrtsp_request *req)
{
char buf[64];
snprintf(buf, sizeof(buf), "%d", rs->cseq);
evrtsp_add_header(req->output_headers, "CSeq", buf);
evrtsp_add_header(req->output_headers, "User-Agent", "forked-daapd/" VERSION);
snprintf(buf, sizeof(buf), "%" PRIX64, libhash);
evrtsp_add_header(req->output_headers, "Client-Instance", buf);
evrtsp_add_header(req->output_headers, "DACP-ID", buf);
if (rs->session)
evrtsp_add_header(req->output_headers, "Session", rs->session);
/* Content-Length added automatically by evrtsp */
}
static int
raop_add_auth(struct raop_session *rs, struct evrtsp_request *req, char *method, char *uri)
{
@ -905,6 +885,26 @@ raop_parse_auth(struct raop_session *rs, struct evrtsp_request *req)
return 0;
}
static void
raop_add_headers(struct raop_session *rs, struct evrtsp_request *req)
{
char buf[64];
snprintf(buf, sizeof(buf), "%d", rs->cseq);
evrtsp_add_header(req->output_headers, "CSeq", buf);
evrtsp_add_header(req->output_headers, "User-Agent", "forked-daapd/" VERSION);
snprintf(buf, sizeof(buf), "%" PRIX64, libhash);
evrtsp_add_header(req->output_headers, "Client-Instance", buf);
evrtsp_add_header(req->output_headers, "DACP-ID", buf);
if (rs->session)
evrtsp_add_header(req->output_headers, "Session", rs->session);
/* Content-Length added automatically by evrtsp */
}
static int
raop_check_cseq(struct raop_session *rs, struct evrtsp_request *req)
{