summaryrefslogtreecommitdiff
path: root/ychat-0.7.0/src/modl.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:41 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:41 +0200
commit9cd3ccffd5372dfde3af478e3f832f18db4be3f1 (patch)
tree631c295a4a4a16b57502b847626763a279bf6df7 /ychat-0.7.0/src/modl.h
parent13aaf70af703748fe096e0664c305cd202637ad2 (diff)
tagging tags
Diffstat (limited to 'ychat-0.7.0/src/modl.h')
-rwxr-xr-xychat-0.7.0/src/modl.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/ychat-0.7.0/src/modl.h b/ychat-0.7.0/src/modl.h
new file mode 100755
index 0000000..50587cd
--- /dev/null
+++ b/ychat-0.7.0/src/modl.h
@@ -0,0 +1,37 @@
+#include "incl.h"
+
+#ifndef MODL_H
+#define MODL_H
+
+#include "maps/smap.h"
+
+using namespace std;
+
+class modl : private smap<dynmod*,string>
+{
+private:
+ 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 );
+#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