summaryrefslogtreecommitdiffabout
path: root/include/grecs/list.h
Side-by-side diff
Diffstat (limited to 'include/grecs/list.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/grecs/list.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/include/grecs/list.h b/include/grecs/list.h
index efccd56..a5840db 100644
--- a/include/grecs/list.h
+++ b/include/grecs/list.h
@@ -17,8 +17,8 @@
#ifndef _GRECS_LIST_H
#define _GRECS_LIST_H
-typedef struct grecs_list_entry *grecs_list_entry_t;
-typedef struct grecs_list *grecs_list_t;
+typedef struct grecs_list_entry *grecs_list_entry_ptr_t;
+typedef struct grecs_list *grecs_list_ptr_t;
struct grecs_list_entry {
struct grecs_list_entry *next, *prev;
@@ -32,24 +32,23 @@ struct grecs_list {
void (*free_entry)(void *);
};
-grecs_list_t grecs_list_create(void);
-size_t grecs_list_size(grecs_list_t);
-void grecs_list_append(grecs_list_t, void *);
-void grecs_list_push(grecs_list_t, void *);
-void *grecs_list_pop(grecs_list_t);
-void *grecs_list_locate(grecs_list_t, void *);
-void *grecs_list_index(grecs_list_t, size_t);
-void *grecs_list_remove_tail(grecs_list_t);
-void grecs_list_remove_entry(grecs_list_t, grecs_list_entry_t);
-void grecs_list_clear(grecs_list_t);
-void grecs_list_free(grecs_list_t);
-void grecs_list_add(grecs_list_t, grecs_list_t);
+grecs_list_ptr_t grecs_list_create(void);
+size_t grecs_list_size(grecs_list_ptr_t);
+void grecs_list_append(grecs_list_ptr_t, void *);
+void grecs_list_push(grecs_list_ptr_t, void *);
+void *grecs_list_pop(grecs_list_ptr_t);
+void *grecs_list_locate(grecs_list_ptr_t, void *);
+void *grecs_list_index(grecs_list_ptr_t, size_t);
+void *grecs_list_remove_tail(grecs_list_ptr_t);
+void grecs_list_remove_entry(grecs_list_ptr_t, grecs_list_entry_ptr_t);
+void grecs_list_clear(grecs_list_ptr_t);
+void grecs_list_free(grecs_list_ptr_t);
+void grecs_list_add(grecs_list_ptr_t, grecs_list_ptr_t);
+int grecs_list_compare(grecs_list_ptr_t, grecs_list_ptr_t);
/* FIXME */
struct grecs_list *_grecs_simple_list_create(int dispose);
struct grecs_list *grecs_value_list_create(void);
-
-
#endif

Return to:

Send suggestions and report system problems to the System administrator.