Lines Matching refs:folders
72 static void tracks_from_spl_text_t(text_t* p, uint32_t* tracks, LIBMTP_folder_t* folders, LIBMTP_fi…
73 …nt32_t ver_major, const uint32_t ver_minor, char* dnse, LIBMTP_folder_t* folders, LIBMTP_file_t* f…
75 static uint32_t discover_id_from_filepath(const char* s, LIBMTP_folder_t* folders, LIBMTP_file_t* f…
76 static void discover_filepath_from_id(char** p, uint32_t track, LIBMTP_folder_t* folders, LIBMTP_fi…
77 static void find_folder_name(LIBMTP_folder_t* folders, uint32_t* id, char** name);
78 static uint32_t find_folder_id(LIBMTP_folder_t* folders, uint32_t parent, char* name);
156 LIBMTP_folder_t *folders; in spl_to_playlist_t() local
158 folders = LIBMTP_Get_Folder_List(device); in spl_to_playlist_t()
165 tracks_from_spl_text_t(p, pl->tracks, folders, files); in spl_to_playlist_t()
186 LIBMTP_folder_t *folders; in playlist_t_to_spl() local
188 folders = LIBMTP_Get_Folder_List(device); in playlist_t_to_spl()
216 spl_text_t_from_tracks(&t, pl->tracks, pl->no_tracks, ver_major, ver_minor, NULL, folders, files); in playlist_t_to_spl()
563 LIBMTP_folder_t* folders, in tracks_from_spl_text_t() argument
569 tracks[c] = discover_id_from_filepath(p->text, folders, files); in tracks_from_spl_text_t()
594 LIBMTP_folder_t* folders, in spl_text_t_from_tracks() argument
613 discover_filepath_from_id(&f, tracks[i], folders, files); in spl_text_t_from_tracks()
663 LIBMTP_folder_t* folders, in discover_filepath_from_id() argument
693 find_folder_name(folders, &id, &f); in discover_filepath_from_id()
722 static uint32_t discover_id_from_filepath(const char* s, LIBMTP_folder_t* folders, LIBMTP_file_t* f… in discover_id_from_filepath() argument
758 id = find_folder_id(folders, id, sci); in discover_id_from_filepath()
783 static void find_folder_name(LIBMTP_folder_t* folders, uint32_t* id, char** name) in find_folder_name() argument
788 LIBMTP_folder_t* f = LIBMTP_Find_Folder(folders, *id); in find_folder_name()
808 static uint32_t find_folder_id(LIBMTP_folder_t* folders, uint32_t parent, char* name) { in find_folder_id() argument
810 if(folders == NULL) in find_folder_id()
814 else if( (folders->parent_id == parent) && in find_folder_id()
815 (strcmp(folders->name, name) == 0) ) in find_folder_id()
816 return folders->folder_id; in find_folder_id()
822 if(folders->sibling != NULL) in find_folder_id()
823 id = find_folder_id(folders->sibling, parent, name); in find_folder_id()
824 if( (id == 0) && (folders->child != NULL) ) in find_folder_id()
825 id = find_folder_id(folders->child, parent, name); in find_folder_id()