Home | History | Annotate | Download | only in examples

Lines Matching refs:folders

2  * \file folders.c
3 * Example program that lists all folders on a device.
45 LIBMTP_folder_t *folders;
53 fprintf(stdout, "mtp-folders: No Devices have been 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 fprintf(stdout, "mtp-folders: Successfully connected\n");
91 folders = LIBMTP_Get_Folder_List(iter);
93 if (folders == NULL) {
94 fprintf(stdout, "No folders found\n");
98 dump_folder_list(folders,0);
101 LIBMTP_destroy_folder_t(folders);