Mir 1.0
Mir application programming interface

Macros

#define MIR_GROUP_CTYPE_DIFF   1
 
#define MIR_GROUP_CTYPE_RATIO   2
 

Functions

mirkl_error_tmir_group_instance_create (mirkl_object_t **obj, int grpn, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool)
 
mirkl_error_tmir_group_add_object (mirkl_object_t *grpobj, mirkl_object_t *obj)
 

Variables

mirkl_object_t * MirGroupClass
 Group class.
 

Detailed Description

Macro Definition Documentation

◆ MIR_GROUP_CTYPE_DIFF

#define MIR_GROUP_CTYPE_DIFF   1

Types of constraints in groups. Differences between first and all other values are fixed.

◆ MIR_GROUP_CTYPE_RATIO

#define MIR_GROUP_CTYPE_RATIO   2

Ratios between first and all other values are fixed.

Function Documentation

◆ mir_group_add_object()

mirkl_error_t * mir_group_add_object ( mirkl_object_t *  grpobj,
mirkl_object_t *  obj 
)

Adding of an object to the group of objects.

Parameters
grpobjInstance of Group class representing group.
objObject to be added. Must be floating point number.

◆ mir_group_instance_create()

mirkl_error_t * mir_group_instance_create ( mirkl_object_t **  obj,
int  grpn,
mirkl_uint32_t  flags,
mir_prsdata_t *  pp,
apr_pool_t *  pool,
apr_pool_t *  tmp_pool 
)

Creation of Group object.

Parameters
[out]objReference to the created object.
grpnGroup number.
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.