• Home
  • Raw
  • Download

Lines Matching refs:ob

2299     PTPObject *ob;  in get_handles_recursively()  local
2300 ret = ptp_object_want(params,currentHandles.Handler[i],PTPOBJECT_OBJECTINFO_LOADED, &ob); in get_handles_recursively()
2302 if (ob->oi.ObjectFormat == PTP_OFC_Association) in get_handles_recursively()
2314 LIBMTP_file_t * obj2file(LIBMTP_mtpdevice_t *device, PTPObject *ob) in obj2file() argument
2323 if (ob->oi.Filename == NULL) in obj2file()
2324 ob->oi.Filename = strdup("<null>"); in obj2file()
2326 if (ob->oi.Keywords == NULL) in obj2file()
2327 ob->oi.Keywords = strdup("<null>"); in obj2file()
2332 file->parent_id = ob->oi.ParentObject; in obj2file()
2333 file->storage_id = ob->oi.StorageID; in obj2file()
2336 file->item_id = ob->oid; in obj2file()
2339 file->filetype = map_ptp_type_to_libmtp_type(ob->oi.ObjectFormat); in obj2file()
2342 file->modificationdate = ob->oi.ModificationDate; in obj2file()
2347 file->filesize = ob->oi.ObjectCompressedSize; in obj2file()
2348 if (ob->oi.Filename != NULL) { in obj2file()
2349 file->filename = strdup(ob->oi.Filename); in obj2file()
2374 ret = ptp_object_want (params, ob->oid, PTPOBJECT_MTPPROPLIST_LOADED, &xob); in obj2file()
2375 if (ob->mtpprops) { in obj2file()
2376 MTPProperties *prop = ob->mtpprops; in obj2file()
2379 for (i=0;i<ob->nrofmtpprops;i++) { in obj2file()
2396 ret = ptp_mtp_getobjectpropssupported(params, ob->oi.ObjectFormat, &propcnt, &props); in obj2file()
2455 PTPObject *ob; in get_files() local
2458 ret = ptp_object_want(params, currentHandles.Handler[i],PTPOBJECT_OBJECTINFO_LOADED, &ob); in get_files()
2462 file = obj2file(device, ob); in get_files()
2590 PTPObject *ob, *xob; in flush_handles() local
2592 ob = &params->objects[i]; in flush_handles()
2597 if (ob->oi.Filename == NULL) in flush_handles()
2598 ob->oi.Filename = strdup("<null>"); in flush_handles()
2599 if (ob->oi.Keywords == NULL) in flush_handles()
2600 ob->oi.Keywords = strdup("<null>"); in flush_handles()
2603 if(ob->oi.ObjectFormat != PTP_OFC_Association) in flush_handles()
2606 if (ob->oi.ParentObject != 0x00000000U) in flush_handles()
2609 if (device->storage != NULL && ob->oi.StorageID != device->storage->id) in flush_handles()
2614 if (!strcasecmp(ob->oi.Filename, "My Music") || in flush_handles()
2615 !strcasecmp(ob->oi.Filename, "Music")) { in flush_handles()
2616 device->default_music_folder = ob->oid; in flush_handles()
2618 else if (!strcasecmp(ob->oi.Filename, "My Playlists") || in flush_handles()
2619 !strcasecmp(ob->oi.Filename, "Playlists")) { in flush_handles()
2620 device->default_playlist_folder = ob->oid; in flush_handles()
2622 else if (!strcasecmp(ob->oi.Filename, "My Pictures") || in flush_handles()
2623 !strcasecmp(ob->oi.Filename, "Pictures")) { in flush_handles()
2624 device->default_picture_folder = ob->oid; in flush_handles()
2626 else if (!strcasecmp(ob->oi.Filename, "My Video") || in flush_handles()
2627 !strcasecmp(ob->oi.Filename, "Video")) { in flush_handles()
2628 device->default_video_folder = ob->oid; in flush_handles()
2630 else if (!strcasecmp(ob->oi.Filename, "My Organizer")) { in flush_handles()
2631 device->default_organizer_folder = ob->oid; in flush_handles()
2633 else if (!strcasecmp(ob->oi.Filename, "ZENcast") || in flush_handles()
2634 !strcasecmp(ob->oi.Filename, "Datacasts")) { in flush_handles()
2635 device->default_zencast_folder = ob->oid; in flush_handles()
2637 else if (!strcasecmp(ob->oi.Filename, "My Albums") || in flush_handles()
2638 !strcasecmp(ob->oi.Filename, "Albums")) { in flush_handles()
2639 device->default_album_folder = ob->oid; in flush_handles()
2641 else if (!strcasecmp(ob->oi.Filename, "Text") || in flush_handles()
2642 !strcasecmp(ob->oi.Filename, "Texts")) { in flush_handles()
2643 device->default_text_folder = ob->oid; in flush_handles()
3924 PTPObject *ob, *xob; in LIBMTP_Get_Filelisting_With_Callback() local
3929 ob = &params->objects[i]; in LIBMTP_Get_Filelisting_With_Callback()
3931 if (ob->oi.ObjectFormat == PTP_OFC_Association) { in LIBMTP_Get_Filelisting_With_Callback()
3940 file->parent_id = ob->oi.ParentObject; in LIBMTP_Get_Filelisting_With_Callback()
3941 file->storage_id = ob->oi.StorageID; in LIBMTP_Get_Filelisting_With_Callback()
3944 file->item_id = ob->oid; in LIBMTP_Get_Filelisting_With_Callback()
3947 file->filetype = map_ptp_type_to_libmtp_type(ob->oi.ObjectFormat); in LIBMTP_Get_Filelisting_With_Callback()
3950 file->modificationdate = ob->oi.ModificationDate; in LIBMTP_Get_Filelisting_With_Callback()
3955 file->filesize = ob->oi.ObjectCompressedSize; in LIBMTP_Get_Filelisting_With_Callback()
3956 if (ob->oi.Filename != NULL) { in LIBMTP_Get_Filelisting_With_Callback()
3957 file->filename = strdup(ob->oi.Filename); in LIBMTP_Get_Filelisting_With_Callback()
3981 ret = ptp_object_want (params, ob->oid, PTPOBJECT_MTPPROPLIST_LOADED, &xob); in LIBMTP_Get_Filelisting_With_Callback()
3982 if (ob->mtpprops) { in LIBMTP_Get_Filelisting_With_Callback()
3983 MTPProperties *prop = ob->mtpprops; in LIBMTP_Get_Filelisting_With_Callback()
3986 for (i=0;i<ob->nrofmtpprops;i++) { in LIBMTP_Get_Filelisting_With_Callback()
4003 ret = ptp_mtp_getobjectpropssupported(params, ob->oi.ObjectFormat, &propcnt, &props); in LIBMTP_Get_Filelisting_With_Callback()
4065 PTPObject *ob; in LIBMTP_Get_Filemetadata() local
4073 … = ptp_object_want (params, fileid, PTPOBJECT_OBJECTINFO_LOADED|PTPOBJECT_MTPPROPLIST_LOADED, &ob); in LIBMTP_Get_Filemetadata()
4080 file->parent_id = ob->oi.ParentObject; in LIBMTP_Get_Filemetadata()
4081 file->storage_id = ob->oi.StorageID; in LIBMTP_Get_Filemetadata()
4084 file->filetype = map_ptp_type_to_libmtp_type(ob->oi.ObjectFormat); in LIBMTP_Get_Filemetadata()
4089 file->filesize = ob->oi.ObjectCompressedSize; in LIBMTP_Get_Filemetadata()
4090 if (ob->oi.Filename != NULL) { in LIBMTP_Get_Filemetadata()
4091 file->filename = strdup(ob->oi.Filename); in LIBMTP_Get_Filemetadata()
4100 if (ob->mtpprops) { in LIBMTP_Get_Filemetadata()
4101 MTPProperties *prop = ob->mtpprops; in LIBMTP_Get_Filemetadata()
4103 for (i=0;i<ob->nrofmtpprops;i++,prop++) { in LIBMTP_Get_Filemetadata()
4322 PTPObject *ob; in get_track_metadata() local
4327 ret = ptp_object_want(params, track->item_id, PTPOBJECT_MTPPROPLIST_LOADED, &ob); in get_track_metadata()
4328 if (ob->mtpprops) { in get_track_metadata()
4329 prop = ob->mtpprops; in get_track_metadata()
4330 for (i=0;i<ob->nrofmtpprops;i++,prop++) in get_track_metadata()
4475 PTPObject *ob; in LIBMTP_Get_Tracklisting_With_Callback() local
4481 ob = &params->objects[i]; in LIBMTP_Get_Tracklisting_With_Callback()
4482 mtptype = map_ptp_type_to_libmtp_type(ob->oi.ObjectFormat); in LIBMTP_Get_Tracklisting_With_Callback()
4490 (ob->oi.ObjectFormat != PTP_OFC_Undefined || in LIBMTP_Get_Tracklisting_With_Callback()
4503 track->item_id = ob->oid; in LIBMTP_Get_Tracklisting_With_Callback()
4504 track->parent_id = ob->oi.ParentObject; in LIBMTP_Get_Tracklisting_With_Callback()
4505 track->storage_id = ob->oi.StorageID; in LIBMTP_Get_Tracklisting_With_Callback()
4506 track->modificationdate = ob->oi.ModificationDate; in LIBMTP_Get_Tracklisting_With_Callback()
4511 track->filesize = ob->oi.ObjectCompressedSize; in LIBMTP_Get_Tracklisting_With_Callback()
4512 if (ob->oi.Filename != NULL) { in LIBMTP_Get_Tracklisting_With_Callback()
4513 track->filename = strdup(ob->oi.Filename); in LIBMTP_Get_Tracklisting_With_Callback()
4516 get_track_metadata(device, ob->oi.ObjectFormat, track); in LIBMTP_Get_Tracklisting_With_Callback()
4577 PTPObject *ob; in LIBMTP_Get_Trackmetadata() local
4586 ret = ptp_object_want (params, trackid, PTPOBJECT_OBJECTINFO_LOADED, &ob); in LIBMTP_Get_Trackmetadata()
4590 mtptype = map_ptp_type_to_libmtp_type(ob->oi.ObjectFormat); in LIBMTP_Get_Trackmetadata()
4598 (ob->oi.ObjectFormat != PTP_OFC_Undefined || in LIBMTP_Get_Trackmetadata()
4611 track->item_id = ob->oid; in LIBMTP_Get_Trackmetadata()
4612 track->parent_id = ob->oi.ParentObject; in LIBMTP_Get_Trackmetadata()
4613 track->storage_id = ob->oi.StorageID; in LIBMTP_Get_Trackmetadata()
4614 track->modificationdate = ob->oi.ModificationDate; in LIBMTP_Get_Trackmetadata()
4619 track->filesize = ob->oi.ObjectCompressedSize; in LIBMTP_Get_Trackmetadata()
4620 if (ob->oi.Filename != NULL) { in LIBMTP_Get_Trackmetadata()
4621 track->filename = strdup(ob->oi.Filename); in LIBMTP_Get_Trackmetadata()
4647 get_track_metadata(device, ob->oi.ObjectFormat, track); in LIBMTP_Get_Trackmetadata()
4788 PTPObject *ob; local
4790 ret = ptp_object_want (params, id, PTPOBJECT_OBJECTINFO_LOADED, &ob);
4795 if (ob->oi.ObjectFormat == PTP_OFC_Association) {
4801 mtime->actime = ob->oi.CaptureDate;
4802 mtime->modtime = ob->oi.ModificationDate;
4807 ptp_usb->current_transfer_total = ob->oi.ObjectCompressedSize+
4855 PTPObject *ob; local
4860 ret = ptp_object_want (params, id, PTPOBJECT_OBJECTINFO_LOADED, &ob);
4865 if (ob->oi.ObjectFormat == PTP_OFC_Association) {
4872 ptp_usb->current_transfer_total = ob->oi.ObjectCompressedSize+
6523 PTPObject *ob; local
6525 ret = ptp_object_want (params, id, 0, &ob);
6689 PTPObject *ob; local
6691 ob = &params->objects[i];
6692 if (ob->oi.ObjectFormat != PTP_OFC_Association) {
6703 if (ob->oi.AssociationDesc != 0x00000000U) {
6704 printf("MTP extended association type 0x%08x encountered\n", ob->oi.AssociationDesc);
6713 folder->folder_id = ob->oid;
6714 folder->parent_id = ob->oi.ParentObject;
6715 folder->storage_id = ob->oi.StorageID;
6716 folder->name = (ob->oi.Filename) ? (char *)strdup(ob->oi.Filename) : NULL;
6899 PTPObject *ob; local
6902 ob = &params->objects[i];
6908 if ( REQ_SPL && is_spl_playlist(&ob->oi) ) {
6911 spl_to_playlist_t(device, &ob->oi, ob->oid, pl);
6913 else if ( ob->oi.ObjectFormat != PTP_OFC_MTP_AbstractAudioVideoPlaylist ) {
6921 pl->name = get_string_from_object(device, ob->oid, PTP_OPC_Name);
6923 pl->name = strdup(ob->oi.Filename);
6925 pl->playlist_id = ob->oid;
6926 pl->parent_id = ob->oi.ParentObject;
6927 pl->storage_id = ob->oi.StorageID;
6966 PTPObject *ob; local
6975 ret = ptp_object_want (params, plid, PTPOBJECT_OBJECTINFO_LOADED, &ob);
6981 if ( REQ_SPL && is_spl_playlist(&ob->oi) ) {
6984 spl_to_playlist_t(device, &ob->oi, ob->oid, pl);
6989 else if ( ob->oi.ObjectFormat != PTP_OFC_MTP_AbstractAudioVideoPlaylist ) {
6996 pl->name = get_string_from_object(device, ob->oid, PTP_OPC_Name);
6998 pl->name = strdup(ob->oi.Filename);
7000 pl->playlist_id = ob->oid;
7001 pl->parent_id = ob->oi.ParentObject;
7002 pl->storage_id = ob->oi.StorageID;
7765 PTPObject *ob; local
7770 ret = ptp_object_want(params, alb->album_id, PTPOBJECT_MTPPROPLIST_LOADED, &ob);
7771 if (ob->mtpprops) {
7772 prop = ob->mtpprops;
7773 for (i=0;i<ob->nrofmtpprops;i++,prop++)
7789 alb->name = get_string_from_object(device, ob->oid, PTP_OPC_Name);
7794 alb->artist = get_string_from_object(device, ob->oid, PTP_OPC_AlbumArtist);
7798 alb->artist = get_string_from_object(device, ob->oid, PTP_OPC_Artist);
7801 alb->composer = get_string_from_object(device, ob->oid, PTP_OPC_Composer);
7804 alb->genre = get_string_from_object(device, ob->oid, PTP_OPC_Genre);
7837 PTPObject *ob; local
7840 ob = &params->objects[i];
7843 if ( ob->oi.ObjectFormat != PTP_OFC_MTP_AbstractAudioAlbum )
7848 alb->album_id = ob->oid;
7849 alb->parent_id = ob->oi.ParentObject;
7850 alb->storage_id = ob->oi.StorageID;
7887 PTPObject *ob; local
7894 ret = ptp_object_want(params, albid, PTPOBJECT_OBJECTINFO_LOADED, &ob);
7899 if (ob->oi.ObjectFormat != PTP_OFC_MTP_AbstractAudioAlbum)
7904 alb->album_id = ob->oid;
7905 alb->parent_id = ob->oi.ParentObject;
7906 alb->storage_id = ob->oi.StorageID;
8180 PTPObject *ob; local
8187 ret = ptp_object_want (params, id, PTPOBJECT_OBJECTINFO_LOADED, &ob);
8194 ret = ptp_mtp_getobjectpropssupported(params, ob->oi.ObjectFormat, &propcnt, &props);
8274 PTPObject *ob; local
8281 ret = ptp_object_want (params, id, PTPOBJECT_OBJECTINFO_LOADED, &ob);
8288 ret = ptp_mtp_getobjectpropssupported(params, ob->oi.ObjectFormat, &propcnt, &props);