ADTF  v2.14.3
cDynamicLinkage Class Reference

System or platform specific functions for loading shared libraries. More...

Static Public Member Functions

static tHandle Load (const tChar *strFilename, tUInt32 nFlags=0)
 Loads a shared library. More...
 
static tVoid Unload (tHandle hLibrary)
 Unloads a loaded shared library. More...
 
static tVoidGetSymbol (tHandle hLibrary, const tChar *strSymbol)
 Returns a pointer to a function in a shared library. More...
 
static tResult GetError ()
 Returns the error code if something has gone wrong. More...
 

Detailed Description

System or platform specific functions for loading shared libraries.

Definition at line 24 of file dynamic_linkage.h.

Member Function Documentation

static tResult GetError ( )
static

Returns the error code if something has gone wrong.

Returns
One of the error codes defined within A_UTILS describing what went wrong(if any)
static tVoid* GetSymbol ( tHandle  hLibrary,
const tChar strSymbol 
)
static

Returns a pointer to a function in a shared library.

if hLibrary is NULL, GetError returns ERR_INVALID_ARG if strSymbol is NULL, GetError returns ERR_INVALID_ARG

Parameters
hLibrary[in] The handle of the library.
strSymbol[in] The name of the function.
Returns
a pointer to the function, or 0 in case of failure.
static tHandle Load ( const tChar strFilename,
tUInt32  nFlags = 0 
)
static

Loads a shared library.

(win32) if the file is not found, GetError returns ERR_NOT_FOUND (win32) if the file is found but is no dll, GetError returns ERR_UNKNOWN_FORMAT (win32) if something else goes wrong, the error is set to ERR_UNEXPECTED (linux) if something goes wrong, the error is set to ERR_UNEXPECTED

Parameters
strFilename[in] The filename of the library.
nFlagsunused.
Returns
A handle to the library, or 0 in case of failure.
static tVoid Unload ( tHandle  hLibrary)
static

Unloads a loaded shared library.

if hLibrary is NULL, GetError returns ERR_INVALID_ARG

Parameters
hLibrary[in] The handle of the library.
Returns
void

Copyright © Audi Electronics Venture GmbH. All rights reserved. (Generated on Fri Mar 22 2019 by doxygen 1.8.10)