--- libelwix/inc/elwix/avar.h 2013/08/20 22:23:35 1.4.2.2 +++ libelwix/inc/elwix/avar.h 2015/06/25 17:53:49 1.9 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: avar.h,v 1.4.2.2 2013/08/20 22:23:35 misho Exp $ +* $Id: avar.h,v 1.9 2015/06/25 17:53:49 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 +Copyright 2004 - 2015 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -318,6 +318,7 @@ typedef struct { .val_key = 0, .val_len = 0, \ .val.net = 0LL \ } +#define AIT_VAL_INIT AIT_VAL_INITIALIZER() #define AIT_INIT_VAL(_vl) (memset((_vl), 0, sizeof(ait_val_t))) #define AIT_INIT_VAL2(_vl, _t) do { \ AIT_INIT_VAL((_vl)); \ @@ -504,6 +505,13 @@ void ait_freeVars(array_t ** __restrict vars); * return: NULL error or !=NULL ait_val_t element */ ait_val_t *ait_getVars(array_t ** __restrict vars, int n); +/* + * ait_resideVars() - Calculate footprint of resided variables into array + * + * @vars = Variable array + * return: bytes for whole array + */ +size_t ait_resideVars(array_t * __restrict vars); /* * ait_sortVarsByKey() - Sorting array with variables by key *