Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/compl.h @ 2042:0cb8ea02e472
Make completion sorting order configurable
* Use allocated plain array for categories
* Use callbacks for dynamic completions (private for now)
* Add compl_set_flags() to allow user to set completion order
* Bump api to 24-24
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Sat, 20 Oct 2012 18:29:49 +0300 |
parents | 924f4552996c |
children | 1bd9978ed5d0 |
line wrap: on
line diff
--- a/mcabber/mcabber/compl.h Thu Nov 22 00:59:19 2012 +0200 +++ b/mcabber/mcabber/compl.h Sat Oct 20 18:29:49 2012 +0300 @@ -27,10 +27,18 @@ #define COMPL_OTR 20 #define COMPL_OTRPOLICY 21 #define COMPL_MODULE 22 +/* private */ +#define COMPL_MAX_ID 22 + +void compl_init_system(void); /* private */ #ifdef MODULES_ENABLE -void compl_init_system(void); -guint compl_new_category(void); +#define COMPL_FLAGS_SORT 0x00 +#define COMPL_FLAGS_REVERSE 0x10 +#define COMPL_FLAGS_APPEND 0x20 +#define COMPL_FLAGS_PREPEND 0x30 + +guint compl_new_category(guint flags); void compl_del_category(guint id); #endif