Mercurial > ~mikael > mcabber > hg
annotate mcabber/mcabber/api.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 | 96c0d8afdbe6 |
children | 998feaa54ef0 |
rev | line source |
---|---|
1762 | 1 #ifndef __MCABBER_API_H__ |
2 #define __MCABBER_API_H__ 1 | |
3 | |
2037
96c0d8afdbe6
api.h should include glib header
Myhailo Danylenko <isbear@ukrpost.net>
parents:
2014
diff
changeset
|
4 #include <glib.h> |
1762 | 5 #include <mcabber/config.h> // For MCABBER_BRANCH |
6 | |
2042
0cb8ea02e472
Make completion sorting order configurable
Myhailo Danylenko <isbear@ukrpost.net>
parents:
2037
diff
changeset
|
7 #define MCABBER_API_VERSION 24 |
0cb8ea02e472
Make completion sorting order configurable
Myhailo Danylenko <isbear@ukrpost.net>
parents:
2037
diff
changeset
|
8 #define MCABBER_API_MIN 24 |
1762 | 9 |
1990
504743d4782e
Introduce MCABBER_BRANCH_DEV to ease module updates
Mikael Berthe <mikael@lilotux.net>
parents:
1988
diff
changeset
|
10 #define MCABBER_BRANCH_DEV 1 |
504743d4782e
Introduce MCABBER_BRANCH_DEV to ease module updates
Mikael Berthe <mikael@lilotux.net>
parents:
1988
diff
changeset
|
11 |
2042
0cb8ea02e472
Make completion sorting order configurable
Myhailo Danylenko <isbear@ukrpost.net>
parents:
2037
diff
changeset
|
12 // cmd_add returns gpointer id |
1991
0450147afa05
Introduce MCABBER_API_HAVE_CMD_ID to ease module updates
Mikael Berthe <mikael@lilotux.net>
parents:
1990
diff
changeset
|
13 #define MCABBER_API_HAVE_CMD_ID 1 |
2042
0cb8ea02e472
Make completion sorting order configurable
Myhailo Danylenko <isbear@ukrpost.net>
parents:
2037
diff
changeset
|
14 // compl_new_category accepts flags argument |
0cb8ea02e472
Make completion sorting order configurable
Myhailo Danylenko <isbear@ukrpost.net>
parents:
2037
diff
changeset
|
15 #define MCABBER_API_HAVE_COMPL_FLAGS 1 |
1991
0450147afa05
Introduce MCABBER_API_HAVE_CMD_ID to ease module updates
Mikael Berthe <mikael@lilotux.net>
parents:
1990
diff
changeset
|
16 |
1762 | 17 extern const gchar *mcabber_branch; |
18 extern const guint mcabber_api_version; | |
19 | |
20 #endif | |
1811 | 21 /* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2: For Vim users... */ |