• Home
  • Raw
  • Download

Lines Matching refs:ob

2776     PTPObject *ob;  in get_handles_recursively()  local
2778 PTPOBJECT_OBJECTINFO_LOADED, &ob); in get_handles_recursively()
2780 if (ob->oi.ObjectFormat == PTP_OFC_Association) in get_handles_recursively()
2855 PTPObject *ob, *xob; in flush_handles() local
2857 ob = &params->objects[i]; in flush_handles()
2863 if (ob->oi.Filename == NULL) in flush_handles()
2864 ob->oi.Filename = strdup("<null>"); in flush_handles()
2865 if (ob->oi.Keywords == NULL) in flush_handles()
2866 ob->oi.Keywords = strdup("<null>"); in flush_handles()
2869 if(ob->oi.ObjectFormat != PTP_OFC_Association) in flush_handles()
2872 if (ob->oi.ParentObject == 0xffffffffU) { in flush_handles()
2874 ob->oid); in flush_handles()
2875 } else if (ob->oi.ParentObject != 0x00000000U) in flush_handles()
2878 if (device->storage != NULL && ob->oi.StorageID != device->storage->id) in flush_handles()
2882 if (!strcasecmp(ob->oi.Filename, "My Music") || in flush_handles()
2883 !strcasecmp(ob->oi.Filename, "My_Music") || in flush_handles()
2884 !strcasecmp(ob->oi.Filename, "Music")) { in flush_handles()
2885 device->default_music_folder = ob->oid; in flush_handles()
2887 else if (!strcasecmp(ob->oi.Filename, "My Playlists") || in flush_handles()
2888 !strcasecmp(ob->oi.Filename, "My_Playlists") || in flush_handles()
2889 !strcasecmp(ob->oi.Filename, "Playlists")) { in flush_handles()
2890 device->default_playlist_folder = ob->oid; in flush_handles()
2892 else if (!strcasecmp(ob->oi.Filename, "My Pictures") || in flush_handles()
2893 !strcasecmp(ob->oi.Filename, "My_Pictures") || in flush_handles()
2894 !strcasecmp(ob->oi.Filename, "Pictures")) { in flush_handles()
2895 device->default_picture_folder = ob->oid; in flush_handles()
2897 else if (!strcasecmp(ob->oi.Filename, "My Video") || in flush_handles()
2898 !strcasecmp(ob->oi.Filename, "My_Video") || in flush_handles()
2899 !strcasecmp(ob->oi.Filename, "Video")) { in flush_handles()
2900 device->default_video_folder = ob->oid; in flush_handles()
2902 else if (!strcasecmp(ob->oi.Filename, "My Organizer") || in flush_handles()
2903 !strcasecmp(ob->oi.Filename, "My_Organizer")) { in flush_handles()
2904 device->default_organizer_folder = ob->oid; in flush_handles()
2906 else if (!strcasecmp(ob->oi.Filename, "ZENcast") || in flush_handles()
2907 !strcasecmp(ob->oi.Filename, "Datacasts")) { in flush_handles()
2908 device->default_zencast_folder = ob->oid; in flush_handles()
2910 else if (!strcasecmp(ob->oi.Filename, "My Albums") || in flush_handles()
2911 !strcasecmp(ob->oi.Filename, "My_Albums") || in flush_handles()
2912 !strcasecmp(ob->oi.Filename, "Albums")) { in flush_handles()
2913 device->default_album_folder = ob->oid; in flush_handles()
2915 else if (!strcasecmp(ob->oi.Filename, "Text") || in flush_handles()
2916 !strcasecmp(ob->oi.Filename, "Texts")) { in flush_handles()
2917 device->default_text_folder = ob->oid; in flush_handles()
3093 PTPObject *ob; in get_suggested_storage_id() local
3096 ret = ptp_object_want(params, parent_id, PTPOBJECT_MTPPROPLIST_LOADED, &ob); in get_suggested_storage_id()
3097 if ((ret != PTP_RC_OK) || (ob->oi.StorageID == 0)) { in get_suggested_storage_id()
3103 return ob->oi.StorageID; in get_suggested_storage_id()
4244 static LIBMTP_file_t *obj2file(LIBMTP_mtpdevice_t *device, PTPObject *ob) in obj2file() argument
4254 file->parent_id = ob->oi.ParentObject; in obj2file()
4255 file->storage_id = ob->oi.StorageID; in obj2file()
4258 file->filetype = map_ptp_type_to_libmtp_type(ob->oi.ObjectFormat); in obj2file()
4281 file->modificationdate = ob->oi.ModificationDate; in obj2file()
4284 file->filesize = ob->oi.ObjectCompressedSize; in obj2file()
4285 if (ob->oi.Filename != NULL) { in obj2file()
4286 file->filename = strdup(ob->oi.Filename); in obj2file()
4290 file->item_id = ob->oid; in obj2file()
4295 if (ob->mtpprops) { in obj2file()
4296 MTPProperties *prop = ob->mtpprops; in obj2file()
4298 for (i=0; i < ob->nrofmtpprops; i++, prop++) { in obj2file()
4365 PTPObject *ob; in LIBMTP_Get_Filemetadata() local
4373 …t = ptp_object_want(params, fileid, PTPOBJECT_OBJECTINFO_LOADED|PTPOBJECT_MTPPROPLIST_LOADED, &ob); in LIBMTP_Get_Filemetadata()
4377 return obj2file(device, ob); in LIBMTP_Get_Filemetadata()
4449 PTPObject *ob; in LIBMTP_Get_Filelisting_With_Callback() local
4454 ob = &params->objects[i]; in LIBMTP_Get_Filelisting_With_Callback()
4456 if (ob->oi.ObjectFormat == PTP_OFC_Association) { in LIBMTP_Get_Filelisting_With_Callback()
4463 file = obj2file(device, ob); in LIBMTP_Get_Filelisting_With_Callback()
4756 PTPObject *ob; in get_track_metadata() local
4761 ret = ptp_object_want(params, track->item_id, PTPOBJECT_MTPPROPLIST_LOADED, &ob); in get_track_metadata()
4762 if (ob->mtpprops) { in get_track_metadata()
4763 prop = ob->mtpprops; in get_track_metadata()
4764 for (i=0;i<ob->nrofmtpprops;i++,prop++) in get_track_metadata()
4959 PTPObject *ob; in LIBMTP_Get_Tracklisting_With_Callback_For_Storage() local
4965 ob = &params->objects[i]; in LIBMTP_Get_Tracklisting_With_Callback_For_Storage()
4966 mtptype = map_ptp_type_to_libmtp_type(ob->oi.ObjectFormat); in LIBMTP_Get_Tracklisting_With_Callback_For_Storage()
4974 (ob->oi.ObjectFormat != PTP_OFC_Undefined || in LIBMTP_Get_Tracklisting_With_Callback_For_Storage()
4984 if ((storage_id != 0) && (ob->oi.StorageID != storage_id )) in LIBMTP_Get_Tracklisting_With_Callback_For_Storage()
4991 track->item_id = ob->oid; in LIBMTP_Get_Tracklisting_With_Callback_For_Storage()
4992 track->parent_id = ob->oi.ParentObject; in LIBMTP_Get_Tracklisting_With_Callback_For_Storage()
4993 track->storage_id = ob->oi.StorageID; in LIBMTP_Get_Tracklisting_With_Callback_For_Storage()
4994 track->modificationdate = ob->oi.ModificationDate; in LIBMTP_Get_Tracklisting_With_Callback_For_Storage()
4999 track->filesize = ob->oi.ObjectCompressedSize; in LIBMTP_Get_Tracklisting_With_Callback_For_Storage()
5000 if (ob->oi.Filename != NULL) { in LIBMTP_Get_Tracklisting_With_Callback_For_Storage()
5001 track->filename = strdup(ob->oi.Filename); in LIBMTP_Get_Tracklisting_With_Callback_For_Storage()
5004 get_track_metadata(device, ob->oi.ObjectFormat, track); in LIBMTP_Get_Tracklisting_With_Callback_For_Storage()
5064 PTPObject *ob; in LIBMTP_Get_Trackmetadata() local
5073 ret = ptp_object_want (params, trackid, PTPOBJECT_OBJECTINFO_LOADED, &ob); in LIBMTP_Get_Trackmetadata()
5077 mtptype = map_ptp_type_to_libmtp_type(ob->oi.ObjectFormat); in LIBMTP_Get_Trackmetadata()
5085 (ob->oi.ObjectFormat != PTP_OFC_Undefined || in LIBMTP_Get_Trackmetadata()
5098 track->item_id = ob->oid; in LIBMTP_Get_Trackmetadata()
5099 track->parent_id = ob->oi.ParentObject; in LIBMTP_Get_Trackmetadata()
5100 track->storage_id = ob->oi.StorageID; in LIBMTP_Get_Trackmetadata()
5101 track->modificationdate = ob->oi.ModificationDate; in LIBMTP_Get_Trackmetadata()
5106 track->filesize = ob->oi.ObjectCompressedSize; in LIBMTP_Get_Trackmetadata()
5107 if (ob->oi.Filename != NULL) { in LIBMTP_Get_Trackmetadata()
5108 track->filename = strdup(ob->oi.Filename); in LIBMTP_Get_Trackmetadata()
5134 get_track_metadata(device, ob->oi.ObjectFormat, track); in LIBMTP_Get_Trackmetadata()
5273 PTPObject *ob; local
5275 ret = ptp_object_want (params, id, PTPOBJECT_OBJECTINFO_LOADED, &ob);
5280 if (ob->oi.ObjectFormat == PTP_OFC_Association) {
5287 ptp_usb->current_transfer_total = ob->oi.ObjectCompressedSize+
5335 PTPObject *ob; local
5340 ret = ptp_object_want (params, id, PTPOBJECT_OBJECTINFO_LOADED, &ob);
5345 if (ob->oi.ObjectFormat == PTP_OFC_Association) {
5352 ptp_usb->current_transfer_total = ob->oi.ObjectCompressedSize+
7097 PTPObject *ob; local
7099 ret = ptp_object_want (params, id, 0, &ob);
7266 PTPObject *ob; local
7268 ob = &params->objects[i];
7269 if (ob->oi.ObjectFormat != PTP_OFC_Association) {
7273 if (storage != PTP_GOH_ALL_STORAGE && storage != ob->oi.StorageID) {
7285 if (ob->oi.AssociationDesc != 0x00000000U) {
7286 LIBMTP_INFO("MTP extended association type 0x%08x encountered\n", ob->oi.AssociationDesc);
7295 folder->folder_id = ob->oid;
7296 folder->parent_id = ob->oi.ParentObject;
7297 folder->storage_id = ob->oi.StorageID;
7298 folder->name = (ob->oi.Filename) ? (char *)strdup(ob->oi.Filename) : NULL;
7515 PTPObject *ob; local
7518 ob = &params->objects[i];
7524 if ( REQ_SPL && is_spl_playlist(&ob->oi) ) {
7527 spl_to_playlist_t(device, &ob->oi, ob->oid, pl);
7529 else if ( ob->oi.ObjectFormat != PTP_OFC_MTP_AbstractAudioVideoPlaylist ) {
7537 pl->name = get_string_from_object(device, ob->oid, PTP_OPC_Name);
7539 pl->name = strdup(ob->oi.Filename);
7541 pl->playlist_id = ob->oid;
7542 pl->parent_id = ob->oi.ParentObject;
7543 pl->storage_id = ob->oi.StorageID;
7582 PTPObject *ob; local
7591 ret = ptp_object_want (params, plid, PTPOBJECT_OBJECTINFO_LOADED, &ob);
7597 if ( REQ_SPL && is_spl_playlist(&ob->oi) ) {
7600 spl_to_playlist_t(device, &ob->oi, ob->oid, pl);
7605 else if ( ob->oi.ObjectFormat != PTP_OFC_MTP_AbstractAudioVideoPlaylist ) {
7612 pl->name = get_string_from_object(device, ob->oid, PTP_OPC_Name);
7614 pl->name = strdup(ob->oi.Filename);
7616 pl->playlist_id = ob->oid;
7617 pl->parent_id = ob->oi.ParentObject;
7618 pl->storage_id = ob->oi.StorageID;
8397 PTPObject *ob; local
8402 ret = ptp_object_want(params, alb->album_id, PTPOBJECT_MTPPROPLIST_LOADED, &ob);
8403 if (ob->mtpprops) {
8404 prop = ob->mtpprops;
8405 for (i=0;i<ob->nrofmtpprops;i++,prop++)
8421 alb->name = get_string_from_object(device, ob->oid, PTP_OPC_Name);
8426 alb->artist = get_string_from_object(device, ob->oid, PTP_OPC_AlbumArtist);
8430 alb->artist = get_string_from_object(device, ob->oid, PTP_OPC_Artist);
8433 alb->composer = get_string_from_object(device, ob->oid, PTP_OPC_Composer);
8436 alb->genre = get_string_from_object(device, ob->oid, PTP_OPC_Genre);
8488 PTPObject *ob; local
8491 ob = &params->objects[i];
8494 if ( ob->oi.ObjectFormat != PTP_OFC_MTP_AbstractAudioAlbum )
8498 if ((storage_id != 0) && (ob->oi.StorageID != storage_id ))
8503 alb->album_id = ob->oid;
8504 alb->parent_id = ob->oi.ParentObject;
8505 alb->storage_id = ob->oi.StorageID;
8542 PTPObject *ob; local
8549 ret = ptp_object_want(params, albid, PTPOBJECT_OBJECTINFO_LOADED, &ob);
8554 if (ob->oi.ObjectFormat != PTP_OFC_MTP_AbstractAudioAlbum)
8559 alb->album_id = ob->oid;
8560 alb->parent_id = ob->oi.ParentObject;
8561 alb->storage_id = ob->oi.StorageID;
8835 PTPObject *ob; local
8842 ret = ptp_object_want (params, id, PTPOBJECT_OBJECTINFO_LOADED, &ob);
8849 ret = ptp_mtp_getobjectpropssupported(params, ob->oi.ObjectFormat, &propcnt, &props);
8929 PTPObject *ob; local
8936 ret = ptp_object_want (params, id, PTPOBJECT_OBJECTINFO_LOADED, &ob);
8943 ret = ptp_mtp_getobjectpropssupported(params, ob->oi.ObjectFormat, &propcnt, &props);