diff th_config.h @ 155:23a79bd6c9d6

Use th_llist for th_config module as well instead of duped linked list implementation.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 07 Feb 2015 00:33:41 +0200
parents 4cd94649475d
children 8e69e07e5aac
line wrap: on
line diff
--- a/th_config.h	Sat Feb 07 00:33:16 2015 +0200
+++ b/th_config.h	Sat Feb 07 00:33:41 2015 +0200
@@ -8,6 +8,7 @@
 #ifndef TH_CONFIG_H
 #define TH_CONFIG_H
 
+#include "th_util.h"
 #include "th_ioctx.h"
 
 #ifdef __cplusplus
@@ -34,6 +35,8 @@
 
 typedef struct _th_cfgitem_t
 {
+    th_llist_t node;
+
     int  type;
     char *name;
     union {
@@ -46,8 +49,6 @@
         th_llist_t **list;
         struct _th_cfgitem_t *section;
     } v;
-    
-    struct _th_cfgitem_t *next, *prev;
 } th_cfgitem_t;