diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:41 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:41 +0200 |
| commit | 9cd3ccffd5372dfde3af478e3f832f18db4be3f1 (patch) | |
| tree | 631c295a4a4a16b57502b847626763a279bf6df7 /ychat-0.7.8/src/modl.h | |
| parent | 13aaf70af703748fe096e0664c305cd202637ad2 (diff) | |
tagging tags
Diffstat (limited to 'ychat-0.7.8/src/modl.h')
| -rwxr-xr-x | ychat-0.7.8/src/modl.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ychat-0.7.8/src/modl.h b/ychat-0.7.8/src/modl.h new file mode 100755 index 0000000..983bdda --- /dev/null +++ b/ychat-0.7.8/src/modl.h @@ -0,0 +1,38 @@ +#include "incl.h" + +#ifndef MODL_H +#define MODL_H + +#include "maps/shashmap.h" + +using namespace std; + +class modl : private shashmap<dynmod*> +{ +private: + static void dlclose_( dynmod* mod ); + dynmod* cache_module ( string s_name, bool b_print_sys_msg ); + void preload_modules( string s_path ); + +#ifdef NCURSES + + void print_cached( int i_mods ); +#endif + +public: + modl(); + ~modl(); + + dynmod* get_module( string s_name ); + + vector<string>* get_mod_vector() + { + vector<string>* p_ret = get_key_vector(); + return p_ret; + } + + void unload_modules(); + void reload_modules(); +}; + +#endif |
