diff options
Diffstat (limited to 'modl.h')
| -rwxr-xr-x | modl.h | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -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 |
