Monado OpenXR Runtime
|
File for verifing app input into api functions. More...
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "xrt/xrt_compiler.h"
#include "util/u_debug.h"
#include "oxr_objects.h"
#include "oxr_logger.h"
#include "oxr_api_verify.h"
#include "oxr_chain.h"
Enumerations | |
enum | verify_state { VERIFY_START, VERIFY_MIDDLE, VERIFY_SLASH, VERIFY_SLASHDOTS } |
Functions | |
XrResult | oxr_verify_fixed_size_single_level_path (struct oxr_logger *log, const char *path, uint32_t array_size, const char *name) |
Verify a single path level that sits inside of a fixed sized array. More... | |
XrResult | oxr_verify_localized_name (struct oxr_logger *log, const char *string, uint32_t array_size, const char *name) |
Verify an arbitrary UTF-8 string that sits inside of a fixed sized array. More... | |
XrResult | oxr_verify_full_path_c (struct oxr_logger *log, const char *path, const char *name) |
XrResult | oxr_verify_full_path (struct oxr_logger *log, const char *path, size_t length, const char *name) |
Verify a full path. More... | |
XrResult | oxr_verify_subaction_paths_create (struct oxr_logger *log, struct oxr_instance *inst, uint32_t countSubactionPaths, const XrPath *subactionPaths, const char *variable) |
Verify a set of subaction paths for action creation. More... | |
XrResult | oxr_verify_subaction_path_sync (struct oxr_logger *log, struct oxr_instance *inst, XrPath path, uint32_t index) |
Verify a set of subaction paths for action sync. More... | |
XrResult | oxr_verify_subaction_path_get (struct oxr_logger *log, struct oxr_instance *inst, XrPath path, const struct oxr_sub_paths *act_sub_paths, struct oxr_sub_paths *out_sub_paths, const char *variable) |
Verify a set of subaction paths for action state get. More... | |
XrResult | oxr_verify_XrSessionCreateInfo (struct oxr_logger *log, const struct oxr_instance *inst, const XrSessionCreateInfo *createInfo) |
XrResult | oxr_verify_XrGraphicsBindingOpenGLXlibKHR (struct oxr_logger *log, const XrGraphicsBindingOpenGLXlibKHR *next) |
XrResult | oxr_verify_XrGraphicsBindingVulkanKHR (struct oxr_logger *log, const XrGraphicsBindingVulkanKHR *next) |
File for verifing app input into api functions.
XrResult oxr_verify_fixed_size_single_level_path | ( | struct oxr_logger * | log, |
const char * | path, | ||
uint32_t | array_size, | ||
const char * | name | ||
) |
Verify a single path level that sits inside of a fixed sized array.
References oxr_error().
XrResult oxr_verify_full_path | ( | struct oxr_logger * | log, |
const char * | path, | ||
size_t | length, | ||
const char * | name | ||
) |
Verify a full path.
Length not including zero terminator character but must be there.
XrResult oxr_verify_localized_name | ( | struct oxr_logger * | log, |
const char * | string, | ||
uint32_t | array_size, | ||
const char * | name | ||
) |
Verify an arbitrary UTF-8 string that sits inside of a fixed sized array.
References oxr_error().
XrResult oxr_verify_subaction_path_get | ( | struct oxr_logger * | log, |
struct oxr_instance * | inst, | ||
XrPath | path, | ||
const struct oxr_sub_paths * | act_sub_paths, | ||
struct oxr_sub_paths * | out_sub_paths, | ||
const char * | variable | ||
) |
Verify a set of subaction paths for action state get.
References oxr_error(), and oxr_path_get_string().
XrResult oxr_verify_subaction_path_sync | ( | struct oxr_logger * | log, |
struct oxr_instance * | inst, | ||
XrPath | path, | ||
uint32_t | index | ||
) |
Verify a set of subaction paths for action sync.
References oxr_error(), and oxr_path_get_string().
XrResult oxr_verify_subaction_paths_create | ( | struct oxr_logger * | log, |
struct oxr_instance * | inst, | ||
uint32_t | countSubactionPaths, | ||
const XrPath * | subactionPaths, | ||
const char * | variable | ||
) |
Verify a set of subaction paths for action creation.