Home | History | Annotate | Download | only in examples

Lines Matching defs:device

3  * Example program to list the playlists on a device.
25 static void dump_plinfo(LIBMTP_mtpdevice_t *device, LIBMTP_playlist_t *pl)
38 track = LIBMTP_Get_Trackmetadata(device, pl->tracks[i]);
44 LIBMTP_Dump_Errorstack(device);
45 LIBMTP_Clear_Errorstack(device);
52 LIBMTP_mtpdevice_t *device;
58 device = LIBMTP_Get_First_Device();
59 if (device == NULL) {
65 playlists = LIBMTP_Get_Playlist_List(device);
72 dump_plinfo(device, pl);
79 LIBMTP_Release_Device(device);