49 aptr -> deref = deref;
62 for (
i = 0;
i <
aptr -> count;
i++)
75 int *index,
const char *
file,
int line)
78 int new =
array -> count;
103 if (
array -> max <= index) {
115 array -> data,
array -> count *
sizeof (
char *));
122 if (
array -> data [index]) {
123 status = ((*
array -> deref) (&
array -> data [index],
136 status = (*
array -> ref) (&
array -> data [index], ptr,
141 if (index >=
array -> count)
142 array -> count = index + 1;
151 if (
array -> data [index])
152 return (*
array -> ref) (ptr,
isc_result_t omapi_array_lookup(char **ptr, omapi_array_t *array, int index, const char *file, int line)
isc_result_t omapi_array_set(omapi_array_t *array, void *ptr, int index, const char *file, int line)
isc_result_t omapi_array_allocate(omapi_array_t **array, omapi_array_ref_t ref, omapi_array_deref_t deref, const char *file, int line)
isc_result_t omapi_array_free(omapi_array_t **array, const char *file, int line)
isc_result_t omapi_array_extend(omapi_array_t *array, char *ptr, int *index, const char *file, int line)
isc_result_t(* omapi_array_deref_t)(char **, const char *, int)
void * dmalloc(size_t, const char *, int)
void dfree(void *, const char *, int)
isc_result_t(* omapi_array_ref_t)(char **, char *, const char *, int)
#define DHCP_R_INVALIDARG