Interface to OpenHMD driver code.
More...
Go to the source code of this file.
|
#define | OH_SPEW(c, ...) |
|
#define | OH_DEBUG(c, ...) |
|
#define | OH_ERROR(c, ...) |
|
|
typedef struct ohmd_context | ohmd_context |
|
typedef struct ohmd_device | ohmd_device |
|
|
struct oh_device * | oh_device_create (ohmd_context *ctx, ohmd_device *dev, const char *prod, bool print_spew, bool print_debug) |
|
Interface to OpenHMD driver code.
- Author
- Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m
◆ OH_DEBUG
#define OH_DEBUG |
( |
|
c, |
|
|
|
... |
|
) |
| |
Value:do { \
if (c->print_debug) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)
◆ OH_ERROR
#define OH_ERROR |
( |
|
c, |
|
|
|
... |
|
) |
| |
Value:do { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} while (false)
◆ OH_SPEW
#define OH_SPEW |
( |
|
c, |
|
|
|
... |
|
) |
| |
Value:do { \
if (c->print_spew) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)