Dump the songs that are still present in the queue to disk. Definition at line 547 of file scrobbler.c. 00548 { 00549 const char *filename; 00550 FILE *fp; 00551 struct scrobbler_entry *ent; 00552 00553 filename = config_getopt("scrobbler.dumpfile"); 00554 if (filename[0] == '\0') 00555 return; 00556 00557 /* Nothing to be stored - remove queue */ 00558 if (scrobbler_queue_first == NULL) { 00559 vfs_delete(filename); 00560 return; 00561 } 00562 00563 /* Write list to queue file */ 00564 fp = vfs_fopen(filename, "w"); 00565 if (fp == NULL) 00566 return; 00567 SCROBBLER_QUEUE_FOREACH(ent) { 00568 fprintf(fp, "%s %s %s %u %d\n", 00569 ent->artist, ent->title, ent->album, 00570 ent->length, (int)ent->time); 00571 } 00572 fclose(fp); 00573 }
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() |
1.6.3