Lines Matching refs:nrofobjects
535 for (i=0;i<params->nrofobjects;i++) in ptp_free_params()
4706 if (i < params->nrofobjects-1) in ptp_remove_object_from_cache()
4707 memmove (ob,ob+1,(params->nrofobjects-1-i)*sizeof(PTPObject)); in ptp_remove_object_from_cache()
4708 params->nrofobjects--; in ptp_remove_object_from_cache()
4710 params->objects = realloc(params->objects, sizeof(PTPObject)*params->nrofobjects); in ptp_remove_object_from_cache()
4722 qsort (params->objects, params->nrofobjects, sizeof(PTPObject), _cmp_ob); in ptp_objects_sort()
4731 *retob = bsearch (&tmpob, params->objects, params->nrofobjects, sizeof(tmpob), _cmp_ob); in ptp_object_find()
4746 if (!params->nrofobjects) { in ptp_object_find_or_insert()
4748 params->nrofobjects = 1; in ptp_object_find_or_insert()
4754 end = params->nrofobjects-1; in ptp_object_find_or_insert()
4781 if ((end == params->nrofobjects-1) && (handle > params->objects[end].oid)) in ptp_object_find_or_insert()
4787 newobs = realloc (params->objects, sizeof(PTPObject)*(params->nrofobjects+1)); in ptp_object_find_or_insert()
4790 if (insertat<=params->nrofobjects) in ptp_object_find_or_insert()
4791 …memmove (¶ms->objects[insertat+1],¶ms->objects[insertat],(params->nrofobjects-insertat)*si… in ptp_object_find_or_insert()
4795 params->nrofobjects++; in ptp_object_find_or_insert()