mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
Move code around, no functional changes
This commit is contained in:
parent
6f642f487b
commit
d0e0700a13
40
src/raop.c
40
src/raop.c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user