• Home
  • Raw
  • Download

Lines Matching refs:ob

2774 ptp_free_object (PTPObject *ob)  in ptp_free_object()  argument
2777 if (!ob) return; in ptp_free_object()
2779 ptp_free_objectinfo (&ob->oi); in ptp_free_object()
2780 for (i=0;i<ob->nrofmtpprops;i++) in ptp_free_object()
2781 ptp_destroy_object_prop(&ob->mtpprops[i]); in ptp_free_object()
2782 ob->flags = 0; in ptp_free_object()
4677 PTPObject *ob; in ptp_find_object_prop_in_cache() local
4680 ret = ptp_object_find (params, handle, &ob); in ptp_find_object_prop_in_cache()
4683 prop = ob->mtpprops; in ptp_find_object_prop_in_cache()
4684 for (i=0;i<ob->nrofmtpprops;i++) { in ptp_find_object_prop_in_cache()
4696 PTPObject *ob; in ptp_remove_object_from_cache() local
4699 ret = ptp_object_find (params, handle, &ob); in ptp_remove_object_from_cache()
4702 i = ob-params->objects; in ptp_remove_object_from_cache()
4704 ptp_free_object (ob); in ptp_remove_object_from_cache()
4707 memmove (ob,ob+1,(params->nrofobjects-1-i)*sizeof(PTPObject)); in ptp_remove_object_from_cache()
4715 PTPObject *ob = (PTPObject*)b; in _cmp_ob() local
4717 return oa->oid - ob->oid; in _cmp_ob()
4802 PTPObject *ob; in ptp_object_want() local
4810 ret = ptp_object_find_or_insert (params, handle, &ob); in ptp_object_want()
4813 *retob = ob; in ptp_object_want()
4815 if ((ob->flags & want) == want) in ptp_object_want()
4819 if ((want & X) && ((ob->flags & X) != X)) { in ptp_object_want()
4823 if (ob->flags & PTPOBJECT_PARENTOBJECT_LOADED) in ptp_object_want()
4824 saveparent = ob->oi.ParentObject; in ptp_object_want()
4826 ret = ptp_getobjectinfo (params, handle, &ob->oi); in ptp_object_want()
4829 if (!ob->oi.Filename) ob->oi.Filename=strdup("<none>"); in ptp_object_want()
4830 if (ob->flags & PTPOBJECT_PARENTOBJECT_LOADED) in ptp_object_want()
4831 ob->oi.ParentObject = saveparent; in ptp_object_want()
4834 if (ob->oi.ParentObject == handle) in ptp_object_want()
4835 ob->oi.ParentObject = 0; in ptp_object_want()
4836 ob->flags |= X; in ptp_object_want()
4842 (!(ob->flags & PTPOBJECT_MTPPROPLIST_LOADED)) in ptp_object_want()
4862 ob->mtpprops = props; in ptp_object_want()
4863 ob->nrofmtpprops = nrofprops; in ptp_object_want()
4959 ob->flags |= PTPOBJECT_MTPPROPLIST_LOADED; in ptp_object_want()
4962 if ((ob->flags & want) == want) in ptp_object_want()
4964 …ptp_debug (params, "ptp_object_want: oid 0x%08x, want flags %x, have only %x?", handle, want, ob->… in ptp_object_want()
4972 PTPObject *ob; in ptp_add_object_to_cache() local
4973 …rn ptp_object_want (params, handle, PTPOBJECT_OBJECTINFO_LOADED|PTPOBJECT_MTPPROPLIST_LOADED, &ob); in ptp_add_object_to_cache()