Monado OpenXR Runtime
Macros | Functions
oxr_instance.c File Reference

Holds instance related functions. More...

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include "util/u_var.h"
#include "util/u_time.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "xrt/xrt_compiler.h"
#include "xrt/xrt_prober.h"
#include "oxr_objects.h"
#include "oxr_logger.h"
#include "oxr_handle.h"
#include "oxr_extension_support.h"
Include dependency graph for oxr_instance.c:

Macros

#define NUM_XDEVS   16
 
#define ENABLE_EXT(mixed_case, all_caps)
 

Functions

int oxr_sdl2_hack_create (void **out_hack)
 
void oxr_sdl2_hack_start (void *hack, struct xrt_prober *xp)
 
void oxr_sdl2_hack_stop (void **hack_ptr)
 
XrResult oxr_instance_create (struct oxr_logger *log, const XrInstanceCreateInfo *createInfo, struct oxr_instance **out_instance)
 
XrResult oxr_instance_get_properties (struct oxr_logger *log, struct oxr_instance *inst, XrInstanceProperties *instanceProperties)
 
XrResult oxr_instance_convert_time_to_timespec (struct oxr_logger *log, struct oxr_instance *inst, XrTime time, struct timespec *timespecTime)
 
XrResult oxr_instance_convert_timespec_to_time (struct oxr_logger *log, struct oxr_instance *inst, const struct timespec *timespecTime, XrTime *time)
 

Detailed Description

Holds instance related functions.

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

Macro Definition Documentation

◆ ENABLE_EXT

#define ENABLE_EXT (   mixed_case,
  all_caps 
)
Value:
if (strcmp(createInfo->enabledExtensionNames[i], \
XR_##all_caps##_EXTENSION_NAME) == 0) { \
inst->extensions.mixed_case = true; \
continue; \
}