--- libaitcfg/src/queue.c 2009/10/19 15:00:10 1.3 +++ libaitcfg/src/queue.c 2010/03/22 14:53:49 1.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: queue.c,v 1.3 2009/10/19 15:00:10 misho Exp $ +* $Id: queue.c,v 1.4 2010/03/22 14:53:49 misho Exp $ * *************************************************************************/ #include "global.h" @@ -246,6 +246,16 @@ inline const u_char *cfg_GetAttribute(sl_config * __re return NULL; return av->psValue; +} + +/* + * cfg_FirstItem() Get first item from config list and return his value + * @cfg = Head list element + * return: NULL if no items in list; !=NULL first pair item +*/ +inline struct tagPair *cfg_FirstItem(sl_config * __restrict cfg) +{ + return cfg->slh_first; } // --------------------------------------------------------------