Mir 1.0
Mir application programming interface

Functions

mirkl_error_tmir_arr_instance_create (mirkl_object_t **obj, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool, mirkl_object_t *first,...)
 
mirkl_error_tmir_arr_instance_create_args (mirkl_object_t **obj, mir_ast_t *ast, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool)
 
mirkl_error_tmir_arr_insert_object (mirkl_object_t *arr, mirkl_object_t *obj, mirkl_size_t pos)
 
mirkl_error_tmir_arr_set_object (mirkl_object_t *arr, mirkl_object_t *obj, mirkl_size_t pos)
 
mirkl_error_tmir_arr_walk (mirkl_object_t *arr, mirkl_error_t *(*func)(mirkl_object_t *, mir_prsdata_t *, void *, apr_pool_t *), mir_prsdata_t *pp, void *args, apr_pool_t *tmp_pool)
 
mirkl_error_tmir_arr_count (mirkl_object_t *obj, mirkl_size_t *num)
 
mirkl_error_tmir_arr_objects (mirkl_object_t *arrobj, mirkl_object_t **objs, mirkl_size_t numobjs)
 

Variables

mirkl_object_t * MirArrayClass
 Array class.
 

Detailed Description

Function Documentation

◆ mir_arr_instance_create()

mirkl_error_t * mir_arr_instance_create ( mirkl_object_t **  obj,
mirkl_uint32_t  flags,
mir_prsdata_t *  pp,
apr_pool_t *  pool,
apr_pool_t *  tmp_pool,
mirkl_object_t *  first,
  ... 
)

Creation of instance of Array class.

Parameters
[out]objReference to the created object.
flagsFlags of the object.
ppReference to the parser data structure.
poolThe pool to use for allocations of object structures. Should be valid as long as the created object lives.
tmp_poolThe pool for temporary allocations. Can be deleted after calling this function.
firstReference to the first object in the created array. Can be NULL if an empty array should be created.
Note
After first a list of other objects can be defined. These objects will be included in the created array. Note, this list must end with NULL.