Home
last modified time | relevance | path

Searched refs:folderlist (Results 1 – 3 of 3) sorted by relevance

/external/libmtp/examples/
Demptyfolders.c25 …lders(LIBMTP_mtpdevice_t *device, LIBMTP_file_t *files, LIBMTP_folder_t *folderlist, int do_delete) in prune_empty_folders() argument
27 if(folderlist==NULL) in prune_empty_folders()
30 if(folderlist->child == NULL) { // this *might* be empty in prune_empty_folders()
36 if(file->parent_id == folderlist->folder_id) { // folder has a child in prune_empty_folders()
44 printf("empty folder %u (%s)\n",folderlist->folder_id,folderlist->name); in prune_empty_folders()
46 if (LIBMTP_Delete_Object(device,folderlist->folder_id) != 0) { in prune_empty_folders()
47 printf("Couldn't delete folder %u\n",folderlist->folder_id); 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()
Dfolders.c26 static void dump_folder_list(LIBMTP_folder_t *folderlist, int level) in dump_folder_list() argument
29 if(folderlist==NULL) { in dump_folder_list()
33 printf("%u\t", folderlist->folder_id); in dump_folder_list()
36 printf("%s\n", folderlist->name); in dump_folder_list()
38 dump_folder_list(folderlist->child, level+1); in dump_folder_list()
39 dump_folder_list(folderlist->sibling, level); in dump_folder_list()
/external/libmtp/src/
Dlibmtp.c7169 LIBMTP_folder_t *LIBMTP_Find_Folder(LIBMTP_folder_t *folderlist, uint32_t id) argument
7173 if(folderlist == NULL) {
7177 if(folderlist->folder_id == id) {
7178 return folderlist;
7181 if(folderlist->sibling) {
7182 ret = LIBMTP_Find_Folder(folderlist->sibling, id);
7185 if(folderlist->child && ret == NULL) {
7186 ret = LIBMTP_Find_Folder(folderlist->child, id);