summaryrefslogtreecommitdiff
path: root/src/modl.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
commit56187184e11b085b82584d3b088c62f427aae83c (patch)
tree8f8387e750a62581966900a42dade265d34c3146 /src/modl.h
parentd3a0d11f93c1ebe38b4301c9bef952bfd24d01a1 (diff)
tagging yhttpd-0.7.1yhttpd-0.7.1
Diffstat (limited to 'src/modl.h')
-rwxr-xr-xsrc/modl.h34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/modl.h b/src/modl.h
index 73abd58..50587cd 100755
--- a/src/modl.h
+++ b/src/modl.h
@@ -3,37 +3,35 @@
#ifndef MODL_H
#define MODL_H
-#include "maps/shashmap.h"
+#include "maps/smap.h"
using namespace std;
-class modl : public shashmap<dynmod*>
+class modl : private smap<dynmod*,string>
{
private:
- static void dlclose_( dynmod* mod );
- dynmod* cache_module ( string s_name, bool b_print_sys_msg );
- void preload_modules( string s_path );
+ static void dlclose_( dynmod* mod );
+ dynmod* cache_module ( string s_name );
+ 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, string s_user );
+ dynmod* get_module( string s_name );
- 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