Monado OpenXR Runtime

Pretty printing various Monado things. More...

#include "xrt/xrt_defines.h"
Include dependency graph for u_pretty_print.h:

Go to the source code of this file.

Data Structures

struct  u_pp_delegate
 Helper struct to hold a function pointer and data pointer. More...
 
struct  u_pp_sink_stack_only
 Stack only pretty printer sink, no need to free, must be inited before use. More...
 

Typedefs

typedef void(* u_pp_delegate_func_t) (void *ptr, const char *str, size_t length)
 Function prototype for receiving pretty printed strings. More...
 
typedef struct u_pp_delegate u_pp_delegate_t
 Helper typedef for delegate struct, less typing. More...
 

Functions

void u_pp (struct u_pp_delegate dg, const char *fmt,...) XRT_PRINTF_FORMAT(2
 Formats a string and sends to the delegate. More...
 
void void u_pp_xrt_input_name (struct u_pp_delegate dg, enum xrt_input_name name)
 Pretty prints the xrt_input_name. More...
 
void u_pp_xrt_result (struct u_pp_delegate dg, xrt_result_t xret)
 Pretty prints the xrt_result_t. More...
 
void u_pp_xrt_reference_space_type (struct u_pp_delegate dg, enum xrt_reference_space_type type)
 Pretty prints the xrt_reference_space_type. More...
 
u_pp_delegate_t u_pp_sink_stack_only_init (struct u_pp_sink_stack_only *sink)
 
void u_pp_small_vec3 (u_pp_delegate_t dg, const struct xrt_vec3 *vec)
 Printers for math structs. More...
 
void u_pp_small_pose (u_pp_delegate_t dg, const struct xrt_pose *pose)
 
void u_pp_small_matrix_3x3 (u_pp_delegate_t dg, const struct xrt_matrix_3x3 *m)
 
void u_pp_small_matrix_4x4 (u_pp_delegate_t dg, const struct xrt_matrix_4x4 *m)
 
void u_pp_small_matrix_4x4_f64 (u_pp_delegate_t dg, const struct xrt_matrix_4x4_f64 *m)
 
void u_pp_small_array_f64 (struct u_pp_delegate dg, const double *arr, size_t n)
 
void u_pp_small_array2d_f64 (struct u_pp_delegate dg, const double *arr, size_t n, size_t m)
 
void u_pp_vec3 (u_pp_delegate_t dg, const struct xrt_vec3 *vec, const char *name, const char *indent)
 
void u_pp_pose (u_pp_delegate_t dg, const struct xrt_pose *pose, const char *name, const char *indent)
 
void u_pp_matrix_3x3 (u_pp_delegate_t dg, const struct xrt_matrix_3x3 *m, const char *name, const char *indent)
 
void u_pp_matrix_4x4 (u_pp_delegate_t dg, const struct xrt_matrix_4x4 *m, const char *name, const char *indent)
 
void u_pp_matrix_4x4_f64 (u_pp_delegate_t dg, const struct xrt_matrix_4x4_f64 *m, const char *name, const char *indent)
 
void u_pp_array_f64 (u_pp_delegate_t dg, const double *arr, size_t n, const char *name, const char *indent)
 Pretty prints double arr[n] More...
 
void u_pp_array2d_f64 (u_pp_delegate_t dg, const double *arr, size_t n, size_t m, const char *name, const char *indent)
 Pretty prints double arr[n][m] More...
 

Detailed Description

Pretty printing various Monado things.

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