Home | History | Annotate | Download | only in src

Lines Matching refs:oi

88  * @param oi object we are deciding on
91 int is_spl_playlist(PTPObjectInfo *oi)
93 return (oi->ObjectFormat == PTP_OFC_Undefined) &&
94 (strlen(oi->Filename) > 4) &&
95 (strcmp((oi->Filename + strlen(oi->Filename) -4), ".spl") == 0);
112 * @param oi object we are reading
117 void spl_to_playlist_t(LIBMTP_mtpdevice_t* device, PTPObjectInfo *oi,
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;
127 pl->parent_id = oi->ParentObject;
128 pl->storage_id = oi->StorageID;