comparison mcabber/mcabber/modules.h @ 1762:e7ce50fe19a9

Introduce mcabber/api.h Bump API revision to 2
author Myhailo Danylenko <isbear@ukrpost.net>
date Sat, 13 Mar 2010 18:17:10 +0200
parents d8442bcb33b7
children e6d355e50d7a
comparison
equal deleted inserted replaced
1761:61f0482d3993 1762:e7ce50fe19a9
1 #ifndef __MCABBER_MODULES_H__ 1 #ifndef __MCABBER_MODULES_H__
2 #define __MCABBER_MODULES_H__ 1 2 #define __MCABBER_MODULES_H__ 1
3 3
4 #include <glib.h> 4 #include <glib.h>
5 #include <gmodule.h> 5 #include <gmodule.h>
6 #include <mcabber/config.h> // MCABBER_BRANCH, MCABBER_API_VERSION 6 #include <mcabber/api.h> // MCABBER_BRANCH, MCABBER_API_VERSION
7 7
8 // Module loading process looks like this: 8 // Module loading process looks like this:
9 // check, if module is loaded 9 // check, if module is loaded
10 // load module (+ run g_module_check_init) 10 // load module (+ run g_module_check_init)
11 // check <modulename>_info variable 11 // check <modulename>_info variable
49 module_info_t *info; // Module information struct. May be NULL! 49 module_info_t *info; // Module information struct. May be NULL!
50 } loaded_module_t; 50 } loaded_module_t;
51 51
52 // Registry of loaded modules 52 // Registry of loaded modules
53 extern GSList *loaded_modules; 53 extern GSList *loaded_modules;
54 extern const gchar *mcabber_branch;
55 extern const guint mcabber_api_version;
56 54
57 // Should be considered mcabber private and not a part of api 55 // Should be considered mcabber private and not a part of api
58 56
59 void module_list_print(void); 57 void module_list_print(void);
60 void module_info_print(const gchar *name); 58 void module_info_print(const gchar *name);