Lines Matching refs:device
3 * Example program that lists the abstract playlists on the device.
26 static uint32_t dump_playlist(LIBMTP_mtpdevice_t *device, LIBMTP_playlist_t *pl)
35 track = LIBMTP_Get_Trackmetadata(device, pl->tracks[i]);
41 LIBMTP_Dump_Errorstack(device);
42 LIBMTP_Clear_Errorstack(device);
51 LIBMTP_mtpdevice_t *device;
75 device = LIBMTP_Get_First_Device();
76 if (device == NULL) {
77 printf("No devices. Connect/replug device and try again.\n");
81 playlist = LIBMTP_Get_Playlist(device,id);
84 dump_playlist(device,playlist);
89 LIBMTP_Release_Device(device);