diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
| commit | 5f4e214740242513c837c8a005ca23779bab1d0c (patch) | |
| tree | 3880f745b0d3376030e3342e60679f25b38bdc4c /src/modl.h | |
| parent | 23c5e7d57e1e9216f4da3446656df2dc7202975d (diff) | |
tagging ychat-0.8.2ychat-0.8.2
Diffstat (limited to 'src/modl.h')
| -rwxr-xr-x | src/modl.h | 30 |
1 files changed, 20 insertions, 10 deletions
@@ -1,29 +1,39 @@ -// class modl declaration. +#include "incl.h" #ifndef MODL_H #define MODL_H -#include "incl.h" -#include "hmap.h" +#include "maps/shashmap.h" using namespace std; - -class modl +class modl : public shashmap<dynmod*> { private: - hmap<dynmod*,string>* map_mods; - pthread_mutex_t mut_map_mods; - static void dlclose_( dynmod* mod ); - dynmod* cache_module ( string s_name ); + 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 ); + dynmod* get_module( string s_name ); + dynmod* get_module( string s_name, string s_user ); + + vector<string>* get_mod_vector() + { + vector<string>* p_ret = get_key_vector(); + return p_ret; + } + void unload_modules(); + void reload_modules(); }; #endif |
