Functions
xslibraryloader.c File Reference
#include "xslibraryloader.h"
#include "xsstring.h"
Include dependency graph for xslibraryloader.c:

Go to the source code of this file.

Functions

void XsLibraryLoader_getErrorString (XsString *error)
 Get an error string after a failure occurred. More...
 
int XsLibraryLoader_isLoaded (const XsLibraryLoader *thisp)
 Check if a library is loaded. More...
 
int XsLibraryLoader_load (XsLibraryLoader *thisp, const XsString *libraryName)
 Dynamically load a library. More...
 
void * XsLibraryLoader_resolve (const XsLibraryLoader *thisp, const char *functionName)
 Resolve a function from the library. More...
 
int XsLibraryLoader_unload (XsLibraryLoader *thisp)
 Unload the loaded library. More...
 

Function Documentation

◆ XsLibraryLoader_getErrorString()

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()

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()

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()

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()

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