Interface to direct OSVR HDK driver code.
More...
Go to the source code of this file.
|
#define | HDK_SPEW(c, ...) |
|
#define | HDK_DEBUG(c, ...) |
|
#define | HDK_ERROR(c, ...) |
|
|
enum | HDK_VARIANT { HDK_UNKNOWN = 0,
HDK_VARIANT_1_2,
HDK_VARIANT_1_3_1_4,
HDK_VARIANT_2
} |
|
|
struct hdk_device * | hdk_device_create (struct os_hid_device *dev, enum HDK_VARIANT variant, bool print_spew, bool print_debug) |
|
◆ HDK_DEBUG
#define HDK_DEBUG |
( |
|
c, |
|
|
|
... |
|
) |
| |
Value:do { \
if (c->print_debug) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)
◆ HDK_ERROR
#define HDK_ERROR |
( |
|
c, |
|
|
|
... |
|
) |
| |
Value:do { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} while (false)
◆ HDK_SPEW
#define HDK_SPEW |
( |
|
c, |
|
|
|
... |
|
) |
| |
Value:do { \
if (c->print_spew) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)