Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/modules.h @ 1754:d8442bcb33b7
Reorder fields in module info struct
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Sat, 13 Mar 2010 12:30:30 +0200 |
parents | 7ee390513463 |
children | e7ce50fe19a9 |
comparison
equal
deleted
inserted
replaced
1753:5173a1350725 | 1754:d8442bcb33b7 |
---|---|
24 | 24 |
25 // Structure, that module should provide | 25 // Structure, that module should provide |
26 typedef struct module_info_struct module_info_t; | 26 typedef struct module_info_struct module_info_t; |
27 struct module_info_struct { | 27 struct module_info_struct { |
28 const gchar *branch; // Contains mcabber branch name, that this module is written to work with | 28 const gchar *branch; // Contains mcabber branch name, that this module is written to work with |
29 module_init_t init; // Initialization callback to be called after all dependencies will be loaded | |
30 module_uninit_t uninit; // Uninitialization callback to be called before module unloading | |
31 const gchar **requires; // NULL-terminated list of module names, that must be loaded before this module | |
32 guint api; // Mcabber branch api version, that module is supposed to work with | 29 guint api; // Mcabber branch api version, that module is supposed to work with |
33 const gchar *version; // Module version string. Optional. | 30 const gchar *version; // Module version string. Optional. |
34 const gchar *description; // Module description. Can contain multiple lines. | 31 const gchar *description; // Module description. Can contain multiple lines. |
32 const gchar **requires; // NULL-terminated list of module names, that must be loaded before this module | |
33 module_init_t init; // Initialization callback to be called after all dependencies will be loaded | |
34 module_uninit_t uninit; // Uninitialization callback to be called before module unloading | |
35 module_info_t *next; // If module supports multiple branches, it can provide several branch structs. | 35 module_info_t *next; // If module supports multiple branches, it can provide several branch structs. |
36 }; | 36 }; |
37 | 37 |
38 const gchar *module_load(const gchar *name, gboolean manual, gboolean force); | 38 const gchar *module_load(const gchar *name, gboolean manual, gboolean force); |
39 const gchar *module_unload(const gchar *name, gboolean manual, gboolean force); | 39 const gchar *module_unload(const gchar *name, gboolean manual, gboolean force); |