C-Language support

Description

The MoCam SDK API is both a C API that conform to the C99 standard and a C++ API.
The MoCam SDK C API is exactly the same as C++ API, wrapped to C99 language.

Example

In C++, you would use the mw::mo::mocam::autofocus::Handle class to use autofocus. The autofocus class maintains autofocus objects internally.
In C API, this object will be explicitly manipulated as an abstract type mwmomocamautofocusHandle.
The name of the wrapper that allow MoCam API types to be used in C begin with mwmomocam[...] (concatenation of the namespace and objects but without '::'), as shown in the examples below.

mwmomocamautofocusHandleInitializemw::mo::mocam::autofocus::Handle::Initialize
mwmomocamautofocusHandleCalculatemw::mo::mocam::autofocus::Handle::Calculate
mwmomocamMallocmw::mo::mocam::Malloc
MWMOMOCAM_ERRORCODES_NOT_ENOUGH_MEMORYmw::mo::mocam::ErrorCodes::NOT_ENOUGH_MEMORY

Revision History

2011/03/15
Initial version.

CONFIDENTIAL