Mercurial > ~mikael > mcabber > hg
comparison mcabber/modules/beep/beep.c @ 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 | ad77110343d6 |
children |
comparison
equal
deleted
inserted
replaced
2041:e8f2db654e67 | 2042:0cb8ea02e472 |
---|---|
87 | 87 |
88 /* Initialization */ | 88 /* Initialization */ |
89 static void beep_init(void) | 89 static void beep_init(void) |
90 { | 90 { |
91 /* Create completions */ | 91 /* Create completions */ |
92 beep_cid = compl_new_category(); | 92 beep_cid = compl_new_category(COMPL_FLAGS_SORT); |
93 if (beep_cid) { | 93 if (beep_cid) { |
94 compl_add_category_word(beep_cid, "enable"); | 94 compl_add_category_word(beep_cid, "enable"); |
95 compl_add_category_word(beep_cid, "disable"); | 95 compl_add_category_word(beep_cid, "disable"); |
96 } | 96 } |
97 /* Add command */ | 97 /* Add command */ |