summaryrefslogtreecommitdiff
path: root/modl.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:42 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:42 +0200
commit98eac951f8087b213f5850bd126dcb279db360a8 (patch)
treec121f5c4df1aab847defa539990c1315bd5ba4a8 /modl.h
parent0537da9d1e0f593130fc3967befb71e673b016bc (diff)
tagging ychat-0.6ychat-0.6
Diffstat (limited to 'modl.h')
-rwxr-xr-xmodl.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/modl.h b/modl.h
new file mode 100755
index 0000000..fec4f2e
--- /dev/null
+++ b/modl.h
@@ -0,0 +1,32 @@
+// class modl declaration.
+
+#ifndef MODL_H
+#define MODL_H
+
+#include "incl.h"
+#include "hmap.h"
+
+using namespace std;
+
+
+class modl
+{
+private:
+ hmap<dynmod*,string>* map_mods;
+ pthread_mutex_t mut_map_mods;
+
+ static void dlclose_( dynmod* mod );
+ dynmod* cache_module ( string s_name );
+ void preload_modules( string *p_path );
+
+public:
+ modl();
+ ~modl();
+
+ dynmod* get_module ( string s_name );
+
+ hmap<dynmod*,string>*
+ get_map_mods() { return map_mods; }
+};
+
+#endif