#include "common.h"
#include <string.h>
{
unsigned int i = 1;
fprintf(fp,
"Playlist: %s\n", pl->
name);
fprintf(fp,
"ID: %u\n", pl->
plid);
fprintf(fp,
"Tracks: %u\n", pl->
ntracks);
fprintf(fp,
"State: %d\n", pl->
_state);
fprintf(fp,
"%5u - track ID %u\n", i, track->
trackid);
i++;
}
}
int main (int argc, char **argv)
{
int n, debug;
extern char *optarg;
int opt;
char *lang;
debug = 0;
while ( (opt= getopt(argc, argv, "D:")) != -1 ) {
switch (opt) {
case 'D':
debug= atoi(optarg);
break;
default:
fprintf(stderr, "usage: playlists [ -D debuglvl ]\n");
return 1;
}
}
lang = getenv("LANG");
if (lang != NULL) {
if (strlen(lang) > 5) {
if (!strcmp(&lang[strlen(lang)-5], "UTF-8")) {
}
}
}
fprintf(stderr, "could not locate any jukeboxes\n");
return 1;
}
if ( n == 0 ) {
fprintf(stderr, "no NJB devices found\n");
return 0;
}
njb = njbs;
return 1;
}
return 1;
}
n = 0;
playlist_dump(playlist, stdout);
printf("----------------------------------\n");
n ++;
}
}
printf("Total: %d playlists\n", n);
return 0;
}