Anonymizer  4.0
SDK for anonymization of human faces and licence plates in images.
 All Data Structures Functions Variables Typedefs Groups Pages
Explicit linking

Set of macros for multiplaform explicit linking. More...

Macros

#define LIB_PREFFIX
 Shared library prefix. More...
 
#define LIB_EXT
 Shared library extension. More...
 
#define LIB_TARGET
 Shared library extension. More...
 
#define OPEN_SHLIB(shlib_hnd, shlib_filename)
 Open (link) shared library. More...
 
#define LOAD_SHFCN(shfcn_ptr, shfcn_type, shlib_hnd, shfcn_name)
 Link function from shared library. More...
 
#define FREE_LIB(shlib_hnd)
 

Detailed Description

Set of macros for multiplaform explicit linking.

Anonymizer is a library secured by Sentinel's HASP secure protection and it is not possible to link the library implicitly via Visual project or Makefile.

The library has to be linked at runtime by explicit linking. Recomended linking operations and macros are documented in this section.

For example of use see example-files.cpp.

Macro Definition Documentation

#define FREE_LIB (   shlib_hnd)

Close/free shared library.

Parameters
shlib_hndhandle to the linked shared library
Examples:
example-buffers.cpp, and example-files.cpp.

Definition at line 66 of file explink.h.

#define LIB_EXT

Shared library extension.

Multiplatform definitions for shared library extension (eg. .dll/.so)

Definition at line 37 of file explink.h.

#define LIB_PREFFIX

Shared library prefix.

Multiplatform definitions for shared library prefix (eg. lib )

Definition at line 31 of file explink.h.

#define LIB_TARGET

Shared library extension.

Multiplatform definitions for target platform strings (eg. Win32/x64/x86_64)

Definition at line 43 of file explink.h.

#define LOAD_SHFCN (   shfcn_ptr,
  shfcn_type,
  shlib_hnd,
  shfcn_name 
)

Link function from shared library.

Macro for loading function from the shared library.

Parameters
[out]shfcn_ptrfunction pointer
[in]shfcn_typefunction type
[in]shlib_hndhandle to the linked shared library
[in]shfcn_namefunction name
Examples:
example-buffers.cpp, and example-files.cpp.

Definition at line 61 of file explink.h.

#define OPEN_SHLIB (   shlib_hnd,
  shlib_filename 
)

Open (link) shared library.

Macro for explicit library linking. In Windows linking via LoadLibrary(), in Linux via dlopen() - example has to be build with '-ldl' ld flag.

Parameters
[out]shlib_hndhandle to the linked shared library
[in]shlib_filenamefilename (with absolute or relative path to working directory) to library to be linked
Examples:
example-buffers.cpp, and example-files.cpp.

Definition at line 51 of file explink.h.