Monado OpenXR Runtime
Data Structures | Functions
oxr_path.c File Reference

Holds path related functions. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "math/m_api.h"
#include "util/u_misc.h"
#include "oxr_objects.h"
#include "oxr_logger.h"
Include dependency graph for oxr_path.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

void * oxr_path_get_attached (struct oxr_logger *log, struct oxr_instance *inst, XrPath xr_path)
 
XrResult oxr_path_get_or_create (struct oxr_logger *log, struct oxr_instance *inst, const char *str, size_t length, XrPath *out_path)
 Get the path for the given string if it exists, or create it if it does not. More...
 
XrResult oxr_path_only_get (struct oxr_logger *log, struct oxr_instance *inst, const char *str, size_t length, XrPath *out_path)
 Only get the path for the given string if it exists. More...
 
XrResult oxr_path_get_string (struct oxr_logger *log, struct oxr_instance *inst, XrPath xr_path, const char **out_str, size_t *out_length)
 Get a pointer and length of the internal string. More...
 
void destroy_callback (struct u_hashset_item *item, void *priv)
 
void oxr_path_destroy_all (struct oxr_logger *log, struct oxr_instance *inst)
 Destroy all paths that the instance has created. More...
 

Detailed Description

Holds path related functions.

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

Function Documentation

◆ destroy_callback()

void destroy_callback ( struct u_hashset_item item,
void *  priv 
)

Referenced by oxr_path_destroy_all().