--- libaitcfg/inc/aitcfg.h 2013/05/30 09:12:27 1.11 +++ libaitcfg/inc/aitcfg.h 2014/01/30 08:30:47 1.13 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcfg.h,v 1.11 2013/05/30 09:12:27 misho Exp $ +* $Id: aitcfg.h,v 1.13 2014/01/30 08:30:47 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 - 2014 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -56,13 +56,14 @@ struct tagCfg { ait_val_t cfg_attr; ait_val_t cfg_val; - SLIST_ENTRY(tagCfg) cfg_next; + TAILQ_ENTRY(tagCfg) cfg_next; RB_ENTRY(tagCfg) cfg_node; }; typedef struct tagRC { pthread_mutex_t rc_mtx; - struct tagCfg *slh_first; + struct tagCfg *tqh_first; + struct tagCfg **tqh_last; struct tagCfg *rbh_root; } cfg_root_t; #define CFG_RC_LOCK(x) pthread_mutex_lock(&(x)->rc_mtx)