mirror of
https://github.com/owntone/owntone-server.git
synced 2025-07-08 16:42:21 -04:00
Add debugging
This commit is contained in:
parent
abf326c69e
commit
a01e46d961
19
src/daap.c
19
src/daap.c
@ -152,6 +152,8 @@ DAAP_BLOCK *daap_response_content_codes(void) {
|
|||||||
DAAP_BLOCK *root;
|
DAAP_BLOCK *root;
|
||||||
DAAP_ITEMS *current=taglist;
|
DAAP_ITEMS *current=taglist;
|
||||||
int g=1;
|
int g=1;
|
||||||
|
|
||||||
|
DPRINTF(ERR_DEBUG,"Preparing to get content codes\n");
|
||||||
|
|
||||||
root=daap_add_empty(NULL,"mccr");
|
root=daap_add_empty(NULL,"mccr");
|
||||||
if(root) {
|
if(root) {
|
||||||
@ -183,6 +185,7 @@ DAAP_BLOCK *daap_response_login(void) {
|
|||||||
DAAP_BLOCK *root;
|
DAAP_BLOCK *root;
|
||||||
int g=1;
|
int g=1;
|
||||||
|
|
||||||
|
DPRINTF(ERR_DEBUG,"Preparing to send login response\n");
|
||||||
|
|
||||||
root=daap_add_empty(NULL,"mlog");
|
root=daap_add_empty(NULL,"mlog");
|
||||||
if(root) {
|
if(root) {
|
||||||
@ -212,9 +215,13 @@ DAAP_BLOCK *daap_response_songlist(void) {
|
|||||||
ENUMHANDLE henum;
|
ENUMHANDLE henum;
|
||||||
MP3FILE *current;
|
MP3FILE *current;
|
||||||
|
|
||||||
|
DPRINTF(ERR_DEBUG,"Preparing to send db items\n");
|
||||||
|
|
||||||
henum=db_enum_begin();
|
henum=db_enum_begin();
|
||||||
if(!henum)
|
if(!henum) {
|
||||||
|
DPRINTF(ERR_DEBUG,"Can't get enum handle\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
root=daap_add_empty(NULL,"adbs");
|
root=daap_add_empty(NULL,"adbs");
|
||||||
if(root) {
|
if(root) {
|
||||||
@ -312,6 +319,8 @@ DAAP_BLOCK *daap_response_update(int clientver) {
|
|||||||
DAAP_BLOCK *root;
|
DAAP_BLOCK *root;
|
||||||
int g=1;
|
int g=1;
|
||||||
|
|
||||||
|
DPRINTF(ERR_DEBUG,"Preparing to send update response\n");
|
||||||
|
|
||||||
while(clientver == db_version()) {
|
while(clientver == db_version()) {
|
||||||
sleep(30);
|
sleep(30);
|
||||||
}
|
}
|
||||||
@ -342,6 +351,8 @@ DAAP_BLOCK *daap_response_playlists(void) {
|
|||||||
DAAP_BLOCK *mlcl;
|
DAAP_BLOCK *mlcl;
|
||||||
DAAP_BLOCK *mlit;
|
DAAP_BLOCK *mlit;
|
||||||
int g=1;
|
int g=1;
|
||||||
|
|
||||||
|
DPRINTF(ERR_DEBUG,"Preparing to send playlists\n");
|
||||||
|
|
||||||
root=daap_add_empty(NULL,"aply");
|
root=daap_add_empty(NULL,"aply");
|
||||||
if(root) {
|
if(root) {
|
||||||
@ -383,6 +394,8 @@ DAAP_BLOCK *daap_response_dbinfo(void) {
|
|||||||
DAAP_BLOCK *mlcl;
|
DAAP_BLOCK *mlcl;
|
||||||
DAAP_BLOCK *mlit;
|
DAAP_BLOCK *mlit;
|
||||||
int g=1;
|
int g=1;
|
||||||
|
|
||||||
|
DPRINTF(ERR_DEBUG,"Preparing to send db info\n");
|
||||||
|
|
||||||
root=daap_add_empty(NULL,"avdb");
|
root=daap_add_empty(NULL,"avdb");
|
||||||
if(root) {
|
if(root) {
|
||||||
@ -423,6 +436,8 @@ DAAP_BLOCK *daap_response_server_info(void) {
|
|||||||
DAAP_BLOCK *root;
|
DAAP_BLOCK *root;
|
||||||
int g=1;
|
int g=1;
|
||||||
|
|
||||||
|
DPRINTF(ERR_DEBUG,"Preparing to send server info\n");
|
||||||
|
|
||||||
root=daap_add_empty(NULL,"msrv");
|
root=daap_add_empty(NULL,"msrv");
|
||||||
|
|
||||||
if(root) {
|
if(root) {
|
||||||
@ -464,6 +479,8 @@ DAAP_BLOCK *daap_response_playlist_items(int playlist) {
|
|||||||
ENUMHANDLE henum;
|
ENUMHANDLE henum;
|
||||||
MP3FILE *current;
|
MP3FILE *current;
|
||||||
int g=1;
|
int g=1;
|
||||||
|
|
||||||
|
DPRINTF(ERR_DEBUG,"Preparing to send playlist items for pl #%d\n",playlist);
|
||||||
|
|
||||||
henum=db_enum_begin();
|
henum=db_enum_begin();
|
||||||
if(!henum)
|
if(!henum)
|
||||||
|
@ -178,6 +178,7 @@ void daap_handler(WS_CONNINFO *pwsc) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if((!root)&&(!streaming)) {
|
if((!root)&&(!streaming)) {
|
||||||
|
DPRINTF(ERR_DEBUG,"Bad request -- root=%x, streaming=%d\n",root,streaming);
|
||||||
ws_returnerror(pwsc,400,"Invalid Request");
|
ws_returnerror(pwsc,400,"Invalid Request");
|
||||||
config_set_status(pwsc,session_id,NULL);
|
config_set_status(pwsc,session_id,NULL);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user