Monado OpenXR Runtime
Data Structures | Macros | Typedefs | Functions
oh_device.h File Reference

Interface to OpenHMD driver code. More...

#include "math/m_api.h"
#include "xrt/xrt_device.h"
Include dependency graph for oh_device.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  oh_device
 

Macros

#define OH_SPEW(c, ...)
 
#define OH_DEBUG(c, ...)
 
#define OH_ERROR(c, ...)
 

Typedefs

typedef struct ohmd_context ohmd_context
 
typedef struct ohmd_device ohmd_device
 

Functions

struct oh_deviceoh_device_create (ohmd_context *ctx, ohmd_device *dev, const char *prod, bool print_spew, bool print_debug)
 

Detailed Description

Interface to OpenHMD driver code.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

◆ 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)