Mercurial > hg
changeset 1754:d8442bcb33b7
Reorder fields in module info struct
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Sat, 13 Mar 2010 12:30:30 +0200 |
parents | 5173a1350725 |
children | 84487d78d0ea |
files | mcabber/doc/HOWTO_modules.txt mcabber/mcabber/modules.h |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/doc/HOWTO_modules.txt Sat Mar 13 12:28:55 2010 +0200 +++ b/mcabber/doc/HOWTO_modules.txt Sat Mar 13 12:30:30 2010 +0200 @@ -20,12 +20,12 @@ typedef struct module_info_struct module_info_t; struct module_info_struct { const gchar *branch; - module_init_t init; - module_uninit_t uninit; - const gchar **requires; guint api; const gchar *version; const gchar *description; + const gchar **requires; + module_init_t init; + module_uninit_t uninit; module_info_t *next; }; --------------------------------------------------------
--- a/mcabber/mcabber/modules.h Sat Mar 13 12:28:55 2010 +0200 +++ b/mcabber/mcabber/modules.h Sat Mar 13 12:30:30 2010 +0200 @@ -26,12 +26,12 @@ typedef struct module_info_struct module_info_t; struct module_info_struct { const gchar *branch; // Contains mcabber branch name, that this module is written to work with - module_init_t init; // Initialization callback to be called after all dependencies will be loaded - module_uninit_t uninit; // Uninitialization callback to be called before module unloading - const gchar **requires; // NULL-terminated list of module names, that must be loaded before this module guint api; // Mcabber branch api version, that module is supposed to work with const gchar *version; // Module version string. Optional. const gchar *description; // Module description. Can contain multiple lines. + const gchar **requires; // NULL-terminated list of module names, that must be loaded before this module + module_init_t init; // Initialization callback to be called after all dependencies will be loaded + module_uninit_t uninit; // Uninitialization callback to be called before module unloading module_info_t *next; // If module supports multiple branches, it can provide several branch structs. };