Lines Matching defs:pl

114  * @param pl the LIBMTP_playlist_t pointer to be filled with info from id
118 const uint32_t id, LIBMTP_playlist_t * const pl)
122 pl->name = malloc(sizeof(char)*(strlen(oi->Filename) -4 +1));
123 memcpy(pl->name, oi->Filename, strlen(oi->Filename) -4);
125 pl->name[strlen(oi->Filename) - 4] = 0;
126 pl->playlist_id = id;
127 pl->parent_id = oi->ParentObject;
128 pl->storage_id = oi->StorageID;
129 pl->tracks = NULL;
130 pl->no_tracks = 0;
132 IF_DEBUG() printf("pl->name='%s'\n",pl->name);
138 printf("failed to make temp file for %s.spl -> %s, errno=%s\n", pl->name, tmpname, strerror(errno));
143 printf("failed to delete temp file for %s.spl -> %s, errno=%s\n", pl->name, tmpname, strerror(errno));
144 int ret = LIBMTP_Get_File_To_File_Descriptor(device, pl->playlist_id, fd, NULL, NULL, NULL);
161 pl->no_tracks = trackno_spl_text_t(p);
162 IF_DEBUG() printf("%u track%s found\n", pl->no_tracks, pl->no_tracks==1?"":"s");
163 pl->tracks = malloc(sizeof(uint32_t)*(pl->no_tracks));
164 tracks_from_spl_text_t(p, pl->tracks, folders, files);
177 * @param pl the LIBMTP_playlist_t to convert (pl->playlist_id will be updated
182 LIBMTP_playlist_t * const pl)
192 IF_DEBUG() printf("pl->name='%s'\n",pl->name);
197 printf("failed to make temp file for %s.spl -> %s, errno=%s\n", pl->name, tmpname, strerror(errno));
202 printf("failed to delete temp file for %s.spl -> %s, errno=%s\n", pl->name, tmpname, strerror(errno));
211 IF_DEBUG() printf("%u track%s\n", pl->no_tracks, pl->no_tracks==1?"":"s");
215 spl_text_t_from_tracks(&t, pl->tracks, pl->no_tracks, ver_major, ver_minor, NULL, folders, files);
222 f->parent_id = pl->parent_id;
223 f->storage_id = pl->storage_id;
224 f->filename = malloc(sizeof(char)*(strlen(pl->name)+5));
225 strcpy(f->filename, pl->name);
236 pl->playlist_id = f->item_id;
252 * changed the pl->playlist_id will likely remain the same. An updated track
258 * @param new the LIBMTP_playlist_t to convert (pl->playlist_id will be updated
265 IF_DEBUG() printf("pl->name='%s'\n",newlist->name);