Lines Matching refs:device
3 * Example program to send a music track to a device.
49 extern LIBMTP_mtpdevice_t *device;
99 album = LIBMTP_Get_Album_List(device);
138 ret = LIBMTP_Update_Album(device, found_album);
149 ret = LIBMTP_Create_New_Album(device, albuminfo);
155 printf("(This could be due to that your device does not support albums.)\n");
156 LIBMTP_Dump_Errorstack(device);
157 LIBMTP_Clear_Errorstack(device);
326 if ( 0 != (rc=LIBMTP_Get_Storage(device, LIBMTP_STORAGE_SORTBY_NOTSORTED)) )
331 for (pds = device->storage; pds != NULL; pds = pds->next)
350 ret = LIBMTP_Send_Track_From_File(device, from_path, trackmeta, progress, NULL);
354 LIBMTP_Dump_Errorstack(device);
355 LIBMTP_Clear_Errorstack(device);