repo.or.cz
/
ail.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added random_real
[ail.git]
/
ail
/
module.hpp
blob
faf38a32cb239e9275db8bc691f255560eb65861
1
#pragma once
2
3
#include <string>
4
#include <ail/environment.hpp>
5
#include <ail/windows.hpp>
6
7
#ifndef AIL_WINDOWS
8
#include <boost/thread/mutex.hpp>
9
#endif
10
11
namespace
ail
12
{
13
class
dynamic_module
14
{
15
public
:
16
dynamic_module
();
17
~
dynamic_module
();
18
bool
load
(
std
::
string
const
&
new_path
);
19
void
unload
();
20
bool
get_function
(
std
::
string
const
&
name
,
void
* &
output
);
21
22
private
:
23
bool
is_loaded
;
24
std
::
string path
;
25
26
#ifdef AIL_WINDOWS
27
::
HMODULE module_handle
;
28
#else
29
void
*
module_handle
;
30
boost
::
mutex mutex
;
31
#endif
32
};
33
}