Commit 52e650d0 52e650d00750fe8d8fdbc8cbae3fa3e68f565d54 by Alain Magloire

declare list_to_array();

1 parent 2ddc6851
...@@ -34,6 +34,7 @@ extern int list_count __P ((list_t, size_t *pcount)); ...@@ -34,6 +34,7 @@ extern int list_count __P ((list_t, size_t *pcount));
34 extern int list_remove __P ((list_t, void *item)); 34 extern int list_remove __P ((list_t, void *item));
35 extern int list_replace __P ((list_t list, void *old_item, void *new_item)); 35 extern int list_replace __P ((list_t list, void *old_item, void *new_item));
36 extern int list_get __P ((list_t, size_t _index, void **pitem)); 36 extern int list_get __P ((list_t, size_t _index, void **pitem));
37 extern int list_to_array __P ((list_t list, void **array, size_t count, size_t *pcount));
37 38
38 typedef int list_action_t __PMT ((void* item, void* cbdata)); 39 typedef int list_action_t __PMT ((void* item, void* cbdata));
39 40
...@@ -44,6 +45,7 @@ typedef int (*list_comparator_t) __PMT((const void*, const void*)); ...@@ -44,6 +45,7 @@ typedef int (*list_comparator_t) __PMT((const void*, const void*));
44 extern list_comparator_t list_set_comparator __P((list_t, list_comparator_t)); 45 extern list_comparator_t list_set_comparator __P((list_t, list_comparator_t));
45 46
46 extern int list_set_destroy_item __P ((list_t list, void (*destoy_item) __P((void *)))); 47 extern int list_set_destroy_item __P ((list_t list, void (*destoy_item) __P((void *))));
48
47 49
48 #ifdef __cplusplus 50 #ifdef __cplusplus
49 } 51 }
......