Lines Matching refs:nrofobjects
1128 for (i=0;i<params->nrofobjects;i++) in ptp_free_params()
2168 for (i=0;i<params->nrofobjects;i++) in handle_event_internal()
2172 params->nrofobjects = 0; in handle_event_internal()
6537 if (i < params->nrofobjects-1) in ptp_remove_object_from_cache()
6538 memmove (ob,ob+1,(params->nrofobjects-1-i)*sizeof(PTPObject)); in ptp_remove_object_from_cache()
6539 params->nrofobjects--; in ptp_remove_object_from_cache()
6541 params->objects = realloc(params->objects, sizeof(PTPObject)*params->nrofobjects); in ptp_remove_object_from_cache()
6561 qsort (params->objects, params->nrofobjects, sizeof(PTPObject), _cmp_ob); in ptp_objects_sort()
6571 *retob = bsearch (&tmpob, params->objects, params->nrofobjects, sizeof(tmpob), _cmp_ob); in ptp_object_find()
6587 if (!params->nrofobjects) { in ptp_object_find_or_insert()
6589 params->nrofobjects = 1; in ptp_object_find_or_insert()
6595 end = params->nrofobjects-1; in ptp_object_find_or_insert()
6622 if ((end == params->nrofobjects-1) && (handle > params->objects[end].oid)) in ptp_object_find_or_insert()
6628 newobs = realloc (params->objects, sizeof(PTPObject)*(params->nrofobjects+1)); in ptp_object_find_or_insert()
6631 if (insertat<params->nrofobjects) in ptp_object_find_or_insert()
6632 …memmove (¶ms->objects[insertat+1],¶ms->objects[insertat],(params->nrofobjects-insertat)*si… in ptp_object_find_or_insert()
6636 params->nrofobjects++; in ptp_object_find_or_insert()