Mor work on dynamic loading of modules

FossilOrigin-Name: b02170339426d0c9efc42d700e891a90f7ddb0961a67b679909a1c929e1501e1
This commit is contained in:
7u83@mail.ru
2018-02-26 08:04:53 +00:00
parent a71b86b125
commit 6316dd6576
7 changed files with 75 additions and 33 deletions

View File

@ -64,6 +64,11 @@ struct cw_Mod {
int (*register_actions) (struct cw_actiondef * def,int mode);
struct cw_MsgSet * (*register_messages)(struct cw_MsgSet set, int mode);
/**
* Handle returned by dlopen, if this module was loaded dynamically
* with dlopen */
void * handle;
};
@ -84,6 +89,6 @@ extern int mod_caching;
#define mod_set_caching(var) (mod_caching=var)
#define mod_get_caching() (mod_caching)
extern int cw_mod_add_dynamic(const char * path, const char * file);
struct cw_Mod * cw_mod_add_dynamic(const char * path, const char * file);
#endif