output to stder, added list.* api which is still in work
[my-code/api.git] / list / list.h
index c500c1a..b415f90 100644 (file)
@@ -2,9 +2,11 @@
 
 #include <stdio.h>
 
+#define L_SUCCESS 1
+#define L_ERROR -1
 
-#define SINGLE 'S'
-#define DOUBLE 'D'
+#define C_NUMBER (1<<0)
+#define C_DATA (1<<1)
 
 typedef struct s_list_element {
        struct s_list_element *next;
@@ -14,4 +16,6 @@ typedef struct s_list_element {
 
 typedef struct s_list {
        t_list_element start;
+       unsigned char method;
+       t_list_element *current;
 } t_list;