Library Control

bool libmk_init()

Initialize the library and its dependencies to a usable state.

Initializes a default libusb context for use throughout the library. If a call to this function is omitted, segmentation faults will be the result.

int libmk_exit()

Clean-up the library resources.

Frees up the memory used by the libusb context used throughout the library. Support for re-initialization after this function is called is not guaranteed. Use only at the end of the program.