Go to the documentation of this file.
70 #elif defined(_MSC_VER)
86 thisp->
m_handle = dlopen(libraryName->m_data, RTLD_LAZY);
87 #elif defined(_MSC_VER)
88 wchar_t* libraryNameW;
93 libraryNameW = (
wchar_t*)malloc(required *
sizeof(
wchar_t));
97 thisp->
m_handle = LoadLibrary(libraryNameW);
113 return dlsym(thisp->
m_handle, functionName);
114 #elif defined(_MSC_VER)
115 #pragma warning(push)
116 #pragma warning(disable: 4152)
117 return GetProcAddress(thisp->
m_handle, functionName);
134 return dlclose(handle) == 0;
135 #elif defined(_MSC_VER)
136 return FreeLibrary(handle) != 0;
159 #elif defined(_MSC_VER)
160 LPTSTR errorText = NULL;
161 (void)FormatMessageW(FORMAT_MESSAGE_FROM_SYSTEM
162 | FORMAT_MESSAGE_ALLOCATE_BUFFER
163 | FORMAT_MESSAGE_IGNORE_INSERTS,
166 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
172 LocalFree(errorText);
XsSize XsString_copyToWCharArray(const XsString *thisPtr, wchar_t *dest, XsSize size)
This function copies the contents of the object to a unicode wchar_t array.
void XsString_assignWCharArray(XsString *thisPtr, const wchar_t *src)
This function determines the size of src and copies the contents to the object after converting it fr...
void XsLibraryLoader_getErrorString(XsString *error)
Get an error string after a failure occurred.
The Xsens dynamic library loader base class.
size_t XsSize
XsSize must be unsigned number!
int XsLibraryLoader_isLoaded(const XsLibraryLoader *thisp)
Check if a library is loaded.
void * XsLibraryLoader_resolve(const XsLibraryLoader *thisp, const char *functionName)
Resolve a function from the library.
int XsLibraryLoader_load(XsLibraryLoader *thisp, const XsString *libraryName)
Dynamically load a library.
int XsLibraryLoader_unload(XsLibraryLoader *thisp)
Unload the loaded library.
void XsString_assignCharArray(XsString *thisPtr, const char *src)
This function determines the size of src and copies the contents to the object.
A 0-terminated managed string of characters.