Monado OpenXR Runtime
Loading...
Searching...
No Matches
oxr_instance_path_cache.c File Reference

Holds per instance action cache. More...

#include "oxr_instance_path_cache.h"
#include "../path/oxr_path_store.h"
#include <string.h>
Include dependency graph for oxr_instance_path_cache.c:

Macros

#define CACHE_SUBACTION_PATHS(NAME, NAME_CAPS, PATH)
 

Functions

XrResult oxr_instance_path_cache_init (struct oxr_instance_path_cache *cache, struct oxr_path_store *store)
 
void oxr_instance_path_cache_fini (struct oxr_instance_path_cache *cache)
 

Detailed Description

Holds per instance action cache.

Macro Definition Documentation

◆ CACHE_SUBACTION_PATHS

#define CACHE_SUBACTION_PATHS (   NAME,
  NAME_CAPS,
  PATH 
)
Value:
do { \
XrResult ret = oxr_path_store_get_or_create(store, PATH, strlen(PATH), &cache->NAME); \
if (ret != XR_SUCCESS) { \
return ret; \
} \
} while (false);