LibMK_Result

enum LibMK_Result

Error codes used within libmk.

Values:

LIBMK_SUCCESS = 0

The one and only success code.

LIBMK_ERR_INVALID_DEV = -1

Invalid device specified.

LIBMK_ERR_DEV_NOT_CONNECTED = -2

Device specified not connected.

LIBMK_ERR_DEV_NOT_SET = -3

Device has not been set.

LIBMK_ERR_UNKNOWN_LAYOUT = -14

Device has unknown layout.

LIBMK_ERR_DEV_NOT_CLOSED = -15

Device access not closed.

LIBMK_ERR_DEV_RESET_FAILED = -16

Device (libusb) reset failed.

LIBMK_ERR_IFACE_CLAIM_FAILED = -4

Failed to claim libusb interface.

LIBMK_ERR_IFACE_RELEASE_FAILED = -5

Failed to release libusb interface.

LIBMK_ERR_DEV_CLOSE_FAILED = -6

Failed to close libusb device.

LIBMK_ERR_DEV_OPEN_FAILED = -7

Failed to open libusb device.

LIBMK_ERR_KERNEL_DRIVER = -8

Failed to unload kernel driver.

LIBMK_ERR_DEV_LIST = -9

Failed to retrieve libusb device list.

LIBMK_ERR_TRANSFER = -10

Failed to transfer data to or from device.

LIBMK_ERR_DESCR = -11

Failed to get libusb device descriptor.

LIBMK_ERR_PROTOCOL = -13

Keyboard interaction protocol error.

LIBMK_ERR_INVALID_ARG = -14

Invalid arguments passed by caller.

LIBMK_ERR_STILL_ACTIVE = -15

Controller is still active.