diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:42 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:42 +0200 |
| commit | 42b79aa5c591dde88e78922a519802f948d9ea60 (patch) | |
| tree | 92cd4e576656837bb99214d8c09c3fec3201474f /src/modl.h | |
| parent | 520f54d6219b7c625b4e07463ac393e6982ddab6 (diff) | |
tagging ychat-0.7.9.4ychat-0.7.9.4
Diffstat (limited to 'src/modl.h')
| -rwxr-xr-x | src/modl.h | 34 |
1 files changed, 18 insertions, 16 deletions
@@ -3,35 +3,37 @@ #ifndef MODL_H #define MODL_H -#include "maps/smap.h" +#include "maps/shashmap.h" using namespace std; -class modl : private smap<dynmod*,string> +class modl : public shashmap<dynmod*> { private: - static void dlclose_( dynmod* mod ); - dynmod* cache_module ( string s_name ); - void preload_modules( string s_path ); + 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 ); + + void print_cached( int i_mods ); #endif public: - modl(); - ~modl(); + 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; - } + vector<string>* get_mod_vector() + { + vector<string>* p_ret = get_key_vector(); + return p_ret; + } - void unload_modules(); - void reload_modules(); + void unload_modules(); + void reload_modules(); }; #endif |
