--- libaitio/inc/aitio.h 2012/08/08 16:01:16 1.24.2.2 +++ libaitio/inc/aitio.h 2012/08/28 08:53:32 1.24.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.24.2.2 2012/08/08 16:01:16 misho Exp $ +* $Id: aitio.h,v 1.24.2.3 2012/08/28 08:53:32 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -547,6 +547,13 @@ inline void io_freeVar(ait_val_t ** __restrict val); */ ait_val_t *io_makeVar(ait_type_t type, ...); /* + * io_hashVar() - Generate hash key for variable + * + * @v = variable + * return: hash key + */ +unsigned short io_hashVar(ait_val_t * __restrict v); +/* * io_allocVars() - Allocate ait_val_t array * * @varnum = Number of variables @@ -601,6 +608,13 @@ inline void io_sortVarsByVal(array_t * __restrict vars * return: NULL error or not found, !=NULL valid element */ ait_val_t *io_findKeyVars(array_t * __restrict vars, u_short key); +/* + * io_hashKeyVars() - Generate hash keys for variables + * + * @vars = Variables + * return -1 error or 0 ok + */ +inline int io_hashKeyVars(array_t * __restrict vars); /*