# HG changeset patch # User Myhailo Danylenko # Date 1268476230 -7200 # Node ID d8442bcb33b7d7c49088a75b49cb98de699433ae # Parent 5173a1350725b7d2b9b919dc9d783c066ed33765 Reorder fields in module info struct diff -r 5173a1350725 -r d8442bcb33b7 mcabber/doc/HOWTO_modules.txt --- 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; }; -------------------------------------------------------- diff -r 5173a1350725 -r d8442bcb33b7 mcabber/mcabber/modules.h --- 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. };