summaryrefslogtreecommitdiff
path: root/src/core/wee-list.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-12-17 17:07:08 +0100
committerSebastien Helleu <flashcode@flashtux.org>2007-12-17 17:07:08 +0100
commitdba084f3d6a65ff8299c79b3867e28b57e50f1be (patch)
tree4b930f11254cc22148d7bd1b75eab83edcb1f063 /src/core/wee-list.h
parente62ec5204c7061a83860fa6c6c8204414a2dd057 (diff)
downloadweechat-dba084f3d6a65ff8299c79b3867e28b57e50f1be.zip
New backlog option in logger plugin, added variable names in .h files, replaced "void *" pointers by structures
Diffstat (limited to 'src/core/wee-list.h')
-rw-r--r--src/core/wee-list.h31
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 */