Rudiments
dynamiclib.h
1 // Copyright (c) 2004 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_DYNAMICLIB_H
5 #define RUDIMENTS_DYNAMICLIB_H
6 
7 #include <rudiments/private/dynamiclibincludes.h>
8 
9 #ifdef RUDIMENTS_NAMESPACE
10 namespace rudiments {
11 #endif
12 
13 class dynamiclibprivate;
14 
17 class RUDIMENTS_DLLSPEC dynamiclib {
18  public:
19 
21  dynamiclib();
22 
24  ~dynamiclib();
25 
34  bool open(const char *library,
35  bool loaddependencies,
36  bool global);
37 
39  bool close();
40 
44  void *getSymbol(const char *symbol) const;
45 
53  char *getError() const;
54 
62  static void setErrorMutex(mutex *mtx);
63 
64  #include <rudiments/private/dynamiclib.h>
65 };
66 
67 #ifdef RUDIMENTS_NAMESPACE
68 }
69 #endif
70 
71 #endif