Home | History | Annotate | Download | only in examples

Lines Matching defs:folders

2  * \file folders.c
3 * Example program that lists all folders on a device.
53 printf("mtp-folders: no devices found\n");
56 fprintf(stderr, "mtp-folders: There has been an error connecting. Exit\n");
59 fprintf(stderr, "mtp-folders: Memory Allocation Error. Exit\n");
65 fprintf(stderr, "mtp-folders: Unknown error, please report "
71 printf("mtp-folders: Successfully connected\n");
110 LIBMTP_folder_t *folders;
113 folders = LIBMTP_Get_Folder_List_For_Storage(device, storage->id);
115 if (folders == NULL) {
116 fprintf(stdout, "No folders found\n");
120 dump_folder_list(folders,0);
122 LIBMTP_destroy_folder_t(folders);