Monado OpenXR Runtime
Data Structures | Macros | Functions
oxr_event.c File Reference

Holds event related functions. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "util/u_misc.h"
#include "oxr_objects.h"
#include "oxr_logger.h"
Include dependency graph for oxr_event.c:

Data Structures

struct  oxr_event
 

Macros

#define ALLOC(log, inst, event, extra)
 

Functions

void lock (struct oxr_instance *inst)
 
void unlock (struct oxr_instance *inst)
 
void * oxr_event_extra (struct oxr_event *event)
 
struct oxr_eventpop (struct oxr_instance *inst)
 
void push (struct oxr_instance *inst, struct oxr_event *event)
 
XrResult oxr_event_push_XrEventDataSessionStateChanged (struct oxr_logger *log, struct oxr_session *sess, XrSessionState state, XrTime time)
 
XrResult oxr_poll_event (struct oxr_logger *log, struct oxr_instance *inst, XrEventDataBuffer *eventData)
 

Detailed Description

Holds event related functions.

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

Macro Definition Documentation

◆ ALLOC

#define ALLOC (   log,
  inst,
  event,
  extra 
)
Value:
do { \
XrResult ret = \
oxr_event_alloc(log, inst, sizeof(**extra), event); \
if (ret != XR_SUCCESS) { \
return ret; \
} \
*((void **)extra) = oxr_event_extra(*event); \
} while (false)