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

Holds path related functions. More...

#include "math/m_api.h"
#include "util/u_misc.h"
#include "util/u_hashset.h"
#include "oxr_path_store.h"
#include "oxr_defines.h"
Include dependency graph for oxr_path_store.c:

Data Structures

struct  oxr_path
 Internal representation of a path, item follows this struct in memory and that in turn is followed by the string. More...
 

Functions

static XrPath to_xr_path (struct oxr_path *path)
 
static struct u_hashset_itemget_item (struct oxr_path *path)
 
static struct oxr_pathfrom_item (struct u_hashset_item *item)
 
static struct oxr_pathget_or_null (const struct oxr_path_store *store, XrPath xr_path)
 
static XrResult ensure_array_length (struct oxr_path_store *store, XrPath *out_id)
 
static XrResult insert_path (struct oxr_path_store *store, struct oxr_path *path, XrPath *out_id)
 
static XrResult allocate_and_insert (struct oxr_path_store *store, const char *str, size_t length, XrPath *out_id)
 
static void destroy_callback (struct u_hashset_item *item, void *priv)
 
XrResult oxr_path_store_init (struct oxr_path_store *store)
 
void oxr_path_store_fini (struct oxr_path_store *store)
 
bool oxr_path_store_is_valid (struct oxr_logger *log, const struct oxr_path_store *store, XrPath xr_path)
 
XrResult oxr_path_store_get_or_create (struct oxr_path_store *store, const char *str, size_t length, XrPath *out_path)
 
void oxr_path_store_only_get (const struct oxr_path_store *store, const char *str, size_t length, XrPath *out_path)
 
XrResult oxr_path_store_get_string (const struct oxr_path_store *store, XrPath xr_path, const char **out_str, size_t *out_length)
 

Detailed Description

Holds path related functions.

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