Go to the source code of this file.
Classes | |
struct | XsLibraryLoader |
The Xsens dynamic library loader base class. More... | |
Macros | |
#define | XSLIBRARYLOADER_INITIALIZER { NULL } |
Typedefs | |
typedef struct XsLibraryLoader | XsLibraryLoader |
Functions | |
XSTYPES_DLL_API void | XsLibraryLoader_getErrorString (XsString *error) |
Get an error string after a failure occurred. More... | |
XSTYPES_DLL_API int | XsLibraryLoader_isLoaded (const XsLibraryLoader *thisp) |
Check if a library is loaded. More... | |
XSTYPES_DLL_API int | XsLibraryLoader_load (XsLibraryLoader *thisp, const XsString *libraryName) |
Dynamically load a library. More... | |
XSTYPES_DLL_API void * | XsLibraryLoader_resolve (const XsLibraryLoader *thisp, const char *functionName) |
Resolve a function from the library. More... | |
XSTYPES_DLL_API int | XsLibraryLoader_unload (XsLibraryLoader *thisp) |
Unload the loaded library. More... | |
#define XSLIBRARYLOADER_INITIALIZER { NULL } |
Definition at line 77 of file xslibraryloader.h.
typedef struct XsLibraryLoader XsLibraryLoader |
Definition at line 78 of file xslibraryloader.h.
XSTYPES_DLL_API void XsLibraryLoader_getErrorString | ( | XsString * | error | ) |
Get an error string after a failure occurred.
[in,out] | error | the string to fill with the result error |
Definition at line 155 of file xslibraryloader.c.
XSTYPES_DLL_API int XsLibraryLoader_isLoaded | ( | const XsLibraryLoader * | thisp | ) |
Check if a library is loaded.
\param[in] thisp the library handle \return zero if nothing is loaded, non-zero otherwise
Definition at line 147 of file xslibraryloader.c.
XSTYPES_DLL_API int XsLibraryLoader_load | ( | XsLibraryLoader * | thisp, |
const XsString * | libraryName | ||
) |
Dynamically load a library.
\param[in,out] thisp the XsLibraryLoader object handle \param[in] libraryName the name of the library to load. The library should be present in the current search path, or be specified by a path \return non-zero if the library could be loaded, zero otherwise
Definition at line 81 of file xslibraryloader.c.
XSTYPES_DLL_API void* XsLibraryLoader_resolve | ( | const XsLibraryLoader * | thisp, |
const char * | functionName | ||
) |
Resolve a function from the library.
\param[in] thisp the library handle \param[in] functionName the name of the function \return a pointer to the resolved function, may be NULL if no function could be resolved
Definition at line 110 of file xslibraryloader.c.
XSTYPES_DLL_API int XsLibraryLoader_unload | ( | XsLibraryLoader * | thisp | ) |
Unload the loaded library.
\param[in,out] thisp the library handle \return zero on failure, non-zero otherwise
Definition at line 127 of file xslibraryloader.c.