Lines Matching refs:device
25 static void prune_empty_folders(LIBMTP_mtpdevice_t *device, LIBMTP_file_t *files, LIBMTP_folder_t *… in prune_empty_folders() argument
46 if (LIBMTP_Delete_Object(device,folderlist->folder_id) != 0) { in prune_empty_folders()
48 LIBMTP_Dump_Errorstack(device); in prune_empty_folders()
49 LIBMTP_Clear_Errorstack(device); in prune_empty_folders()
55 prune_empty_folders(device,files,folderlist->child,do_delete); // recurse down in prune_empty_folders()
56 prune_empty_folders(device,files,folderlist->sibling,do_delete); // recurse along in prune_empty_folders()
82 LIBMTP_mtpdevice_t *device; in main() local
87 device = LIBMTP_Get_First_Device(); in main()
88 if (device == NULL) { in main()
94 files = LIBMTP_Get_Filelisting_With_Callback(device,NULL,NULL); in main()
97 folders = LIBMTP_Get_Folder_List(device); in main()
102 prune_empty_folders(device,files,folders,do_delete); in main()
108 LIBMTP_Release_Device(device); in main()