3 //=============================================================================
7 * $Id: OS_NS_dlfcn.h 80826 2008-03-04 14:51:23Z wotte $
9 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
10 * @author Jesper S. M|ller<stophph@diku.dk>
11 * @author and a cast of thousands...
15 //=============================================================================
17 #ifndef ACE_OS_NS_DLFCN_H
18 # define ACE_OS_NS_DLFCN_H
20 # include /**/ "ace/pre.h"
22 # include "ace/config-all.h"
24 # if !defined (ACE_LACKS_PRAGMA_ONCE)
26 # endif /* ACE_LACKS_PRAGMA_ONCE */
28 #include "ace/os_include/os_dlfcn.h"
29 #include /**/ "ace/ACE_export.h"
31 #if defined (ACE_EXPORT_MACRO)
32 # undef ACE_EXPORT_MACRO
34 #define ACE_EXPORT_MACRO ACE_Export
36 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
40 //@{ @name A set of wrappers for explicit dynamic linking.
41 ACE_NAMESPACE_INLINE_FUNCTION
42 int dlclose (ACE_SHLIB_HANDLE handle
);
44 ACE_NAMESPACE_INLINE_FUNCTION
45 ACE_TCHAR
*dlerror (void);
47 ACE_NAMESPACE_INLINE_FUNCTION
48 ACE_SHLIB_HANDLE
dlopen (const ACE_TCHAR
*filename
,
49 int mode
= ACE_DEFAULT_SHLIB_MODE
);
51 ACE_NAMESPACE_INLINE_FUNCTION
52 void *dlsym (ACE_SHLIB_HANDLE handle
,
53 const ACE_TCHAR
*symbol
);
56 } /* namespace ACE_OS */
58 ACE_END_VERSIONED_NAMESPACE_DECL
60 # if defined (ACE_HAS_INLINED_OSCALLS)
61 # if defined (ACE_INLINE)
63 # endif /* ACE_INLINE */
64 # define ACE_INLINE inline
65 # include "ace/OS_NS_dlfcn.inl"
66 # endif /* ACE_HAS_INLINED_OSCALLS */
68 # include /**/ "ace/post.h"
69 #endif /* ACE_OS_NS_DLFCN_H */