summaryrefslogtreecommitdiff
path: root/src/string_list.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2010-11-26 16:11:46 +0000
committerChristian Pointner <equinox@spreadspace.org>2010-11-26 16:11:46 +0000
commit668f72e224aac1e0dbecf4fa3baba567016f0f22 (patch)
tree5c732ea5c73cb74ef5568b529df24c0555b6ef4c /src/string_list.h
parentmoved version.h to config.h with additional info (diff)
added generic single linked list
git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@6 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/string_list.h')
-rw-r--r--src/string_list.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/string_list.h b/src/string_list.h
index a9095db..e748e43 100644
--- a/src/string_list.h
+++ b/src/string_list.h
@@ -28,18 +28,11 @@
#ifndef TCPPROXY_string_list_h_INCLUDED
#define TCPPROXY_string_list_h_INCLUDED
-struct string_list_element_struct {
- char* string_;
- struct string_list_element_struct* next_;
-};
-typedef struct string_list_element_struct string_list_element_t;
+#include "slist.h"
-struct string_list_struct {
- string_list_element_t* first_;
-};
-typedef struct string_list_struct string_list_t;
+typedef slist_t string_list_t;
-void string_list_init(string_list_t* list);
+int string_list_init(string_list_t* list);
void string_list_clear(string_list_t* list);
int string_list_add(string_list_t* list, const char* string);