hid_init method

int hid_init()

@brief Initialize the HIDAPI library.

This function initializes the HIDAPI library. Calling it is not strictly necessary, as it will be called automatically by hid_enumerate() and any of the hid_open_*() functions if it is needed. This function should be called at the beginning of execution however, if there is a chance of HIDAPI handles being opened by different threads simultaneously.

@ingroup API

@returns This function returns 0 on success and -1 on error. Call hid_error(NULL) to get the failure reason.

Implementation

int hid_init() {
  return _hid_init();
}