Classes | Macros | Typedefs | Functions
xslibraryloader.h File Reference
#include "xstypesconfig.h"
#include "xsstring.h"
Include dependency graph for xslibraryloader.h:
This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

◆ XSLIBRARYLOADER_INITIALIZER

#define XSLIBRARYLOADER_INITIALIZER   { NULL }

Definition at line 77 of file xslibraryloader.h.

Typedef Documentation

◆ XsLibraryLoader

Definition at line 78 of file xslibraryloader.h.

Function Documentation

◆ XsLibraryLoader_getErrorString()

XSTYPES_DLL_API void XsLibraryLoader_getErrorString ( XsString error)

Get an error string after a failure occurred.

Parameters
[in,out]errorthe string to fill with the result error

Definition at line 155 of file xslibraryloader.c.

◆ XsLibraryLoader_isLoaded()

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.

◆ XsLibraryLoader_load()

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.

◆ XsLibraryLoader_resolve()

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.

◆ XsLibraryLoader_unload()

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.



xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:21