Home | History | Annotate | Download | only in examples

Lines Matching refs:pl

25 static void dump_plinfo(LIBMTP_mtpdevice_t *device, LIBMTP_playlist_t *pl)
29 printf("Playlist ID: %d\n", pl->playlist_id);
30 if (pl->name != NULL)
31 printf(" Name: %s\n", pl->name);
32 printf(" Parent ID: %d\n", pl->parent_id);
35 for (i = 0; i < pl->no_tracks; i++) {
38 track = LIBMTP_Get_Trackmetadata(device, pl->tracks[i]);
40 printf(" %u: %s - %s\n", pl->tracks[i], track->artist, track->title);
43 printf(" %u: INVALID TRACK REFERENCE!\n", pl->tracks[i]);
69 LIBMTP_playlist_t *pl, *tmp;
70 pl = playlists;
71 while (pl != NULL) {
72 dump_plinfo(device, pl);
73 tmp = pl;
74 pl = pl->next;