diff options
Diffstat (limited to 'src/core/wee-list.h')
-rw-r--r-- | src/core/wee-list.h | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/src/core/wee-list.h b/src/core/wee-list.h index c5226d701..852026aba 100644 --- a/src/core/wee-list.h +++ b/src/core/wee-list.h @@ -20,9 +20,9 @@ #ifndef __WEECHAT_LIST_H #define __WEECHAT_LIST_H 1 -#define WEELIST_POS_SORT 0 -#define WEELIST_POS_BEGINNING 1 -#define WEELIST_POS_END 2 +#define WEELIST_POS_SORT "sort" +#define WEELIST_POS_BEGINNING "beginning" +#define WEELIST_POS_END "end" struct t_weelist_item { @@ -39,13 +39,22 @@ struct t_weelist }; extern struct t_weelist *weelist_new (); -extern struct t_weelist_item *weelist_add (struct t_weelist *, char *, int); -extern struct t_weelist_item *weelist_search (struct t_weelist *, char *); -extern struct t_weelist_item *weelist_casesearch (struct t_weelist *, char *); -extern struct t_weelist_item *weelist_get (struct t_weelist *, int); -extern void weelist_remove (struct t_weelist *, struct t_weelist_item *); -extern void weelist_remove_all (struct t_weelist *); -extern void weelist_free (struct t_weelist *); -extern void weelist_print_log (struct t_weelist *, char *); +extern struct t_weelist_item *weelist_add (struct t_weelist *weelist, + char *data, char *where); +extern struct t_weelist_item *weelist_search (struct t_weelist *weelist, + char *data); +extern struct t_weelist_item *weelist_casesearch (struct t_weelist *weelist, + char *data); +extern struct t_weelist_item *weelist_get (struct t_weelist *weelist, + int position); +extern struct t_weelist_item *weelist_next (struct t_weelist_item *item); +extern struct t_weelist_item *weelist_prev (struct t_weelist_item *item); +extern char *weelist_string (struct t_weelist_item *item); +extern int weelist_size (struct t_weelist *weelist); +extern void weelist_remove (struct t_weelist *weelist, + struct t_weelist_item *item); +extern void weelist_remove_all (struct t_weelist *weelist); +extern void weelist_free (struct t_weelist *weelist); +extern void weelist_print_log (struct t_weelist *weelist, char *name); #endif /* wee-list.h */ |