#include <cat/cat.h>
int cat_init(catinit_info *info);
This function should be called exactly once, before any other functions in the SDK. If this function fails, no other SDK functions should be used. The info argument should either be NULL or point to a structure containing the following:
typedef struct catinit_info { int size; int flags; int major; int minor; } catinit_info;
The size
field should be set to sizeof(catinit_info)
. The
major
and minor
fields should either be zero or set to the lowest required library version.
If the library is found to be incompatible, cat_init() will fail with a CAT_ENOTFOUND
error code. On return, the major and minor version of the library will be
stored in the corresponding fields.
The flags field can contain a combination of: