summaryrefslogtreecommitdiff
path: root/src/modl.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:45 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:45 +0200
commitd34015c5ba231b95de20e9fcd7a33c5b2b9a1006 (patch)
treeceac33bd27e3b1158a0ac4e17f7fd7e5e6473fea /src/modl.h
parentc507ce3198ea4d822832cc8740f0128df8873c02 (diff)
tagging ychat-0.5.3ychat-0.5.3
Diffstat (limited to 'src/modl.h')
-rwxr-xr-xsrc/modl.h30
1 files changed, 10 insertions, 20 deletions
diff --git a/src/modl.h b/src/modl.h
index 73abd58..b496120 100755
--- a/src/modl.h
+++ b/src/modl.h
@@ -1,39 +1,29 @@
-#include "incl.h"
+// class modl declaration.
#ifndef MODL_H
#define MODL_H
-#include "maps/shashmap.h"
+#include "incl.h"
+#include "hmap.h"
using namespace std;
-class modl : public shashmap<dynmod*>
+
+class modl
{
private:
- static void dlclose_( dynmod* mod );
- dynmod* cache_module ( string s_name, bool b_print_sys_msg );
- void preload_modules( string s_path );
+ hmap<dynmod*,string>* map_mods;
+ pthread_mutex_t mut_map_mods;
-#ifdef NCURSES
-
- void print_cached( int i_mods );
-#endif
+ static void dlclose_( dynmod* mod );
+ dynmod* cache_module ( string s_name );
public:
modl();
~modl();
- 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;
- }
+ dynmod* get_module ( string s_name );
- void unload_modules();
- void reload_modules();
};
#endif