![]() |
SDK Version 2.0.1
AnsuR Technologies ASMIRA SDK
|
Classes | |
| struct | asdk::sdk_t |
| SDK Core. More... | |
Typedefs | |
| typedef void * | asdk::hsdk |
Enumerations | |
| enum | asdk::Status { asdk::StatusUndef , asdk::StatusOK , asdk::StatusDisconnected , asdk::StatusError , asdk::StatusErrorHandle , asdk::StatusErrorVideoModule , asdk::StatusErrorImageModule , asdk::StatusErrorInitialized , asdk::StatusErrorConnect , asdk::StatusErrorTransmit , asdk::StatusErrorAudioModule , asdk::StatusErrorFile , asdk::StatusErrorNotPermitted } |
| Result of an SDK call. More... | |
Functions | |
| Status | asdk::sdk_t::Unload () |
| Unloads SDK library. | |
| sdk_t * | asdk::Initialize () |
| Loads the SDK shared library and creates an SDK handle. | |
Variables | |
| static const uint8_t | asdk::VERSION_MAJOR = 2 |
| static const uint8_t | asdk::VERSION_MINOR = 0 |
| static const uint8_t | asdk::VERSION_PATCH = 1 |
Loading the shared library, the SDK handle, and the status codes returned by every call. Start at asdk::Initialize().
| typedef void* asdk::hsdk |
Opaque handle to a loaded shared library
Definition at line 127 of file asmirasdk.h.
| enum asdk::Status |
Result of an SDK call.
Definition at line 159 of file asmirasdk.h.
|
inline |
Unloads SDK library.
Definition at line 958 of file asmirasdk.h.
References ASDK_FreeLib, library, asdk::StatusErrorHandle, and asdk::StatusOK.
|
inline |
Loads the SDK shared library and creates an SDK handle.
Opens asmirasdk.dll on Windows and asmirasdk.so elsewhere, checks that the library reports the same major version this header was built against, and returns a ready handle. A differing minor version is accepted with a warning printed to stdout; a differing major version is refused.
Register the callbacks that matter before connecting, then call asdk_t::ConnectSecured. Release the handle with sdk_t::Unload().
Definition at line 1745 of file asmirasdk.h.
References ASDK_CALL, ASDK_FreeLib, ASDK_GetProc, ASDK_LoadLib, Initialize(), asdk::sdk_t::library, VERSION_MAJOR, and VERSION_MINOR.
Referenced by Initialize().
|
static |
SDK major version this header declares. asdk::Initialize() refuses a library that reports a different one.
Definition at line 132 of file asmirasdk.h.
Referenced by Initialize().
|
static |
SDK minor version this header declares. A library reporting a different one is accepted with a warning printed to stdout.
Definition at line 136 of file asmirasdk.h.
Referenced by Initialize().
|
static |
SDK patch version this header declares.
Definition at line 139 of file asmirasdk.h.