Home | History | Annotate | Download | only in src

Lines Matching refs:newlist

263 			  LIBMTP_playlist_t * const newlist)
265 IF_DEBUG() printf("pl->name='%s'\n",newlist->name);
268 LIBMTP_playlist_t * old = LIBMTP_Get_Playlist(device, newlist->playlist_id);
277 if(old->no_tracks != newlist->no_tracks)
279 for(i=0;i<newlist->no_tracks && delta==0;i++) {
280 if(old->tracks[i] != newlist->tracks[i])
293 if(strcmp(old->name,newlist->name) == 0)
296 printf("name is changing too -> %s\n",newlist->name);
299 return LIBMTP_Create_New_Playlist(device, newlist);
304 if(strcmp(old->name,newlist->name) != 0) {
305 IF_DEBUG() printf("ONLY name is changing -> %s\n",newlist->name);
307 char* s = malloc(sizeof(char)*(strlen(newlist->name)+5));
308 strcpy(s, newlist->name);
310 int ret = LIBMTP_Set_Playlist_Name(device, newlist, s);