Monado OpenXR Runtime
|
Logging functions. More...
#include <stdio.h>
#include <stdarg.h>
#include "xrt/xrt_compiler.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "oxr_objects.h"
#include "oxr_logger.h"
#include "openxr/openxr_reflection.h"
Macros | |
#define | ENTRY(NAME, VALUE) case VALUE: return #NAME; |
Functions | |
void | oxr_log_init (struct oxr_logger *logger, const char *api_func_name) |
void | oxr_log_set_instance (struct oxr_logger *logger, struct oxr_instance *inst) |
void | oxr_log (struct oxr_logger *logger, const char *fmt,...) |
void | oxr_warn (struct oxr_logger *logger, const char *fmt,...) |
XrResult | oxr_error (struct oxr_logger *logger, XrResult result, const char *fmt,...) |
void | oxr_slog (struct oxr_sink_logger *slog, const char *fmt,...) |
Log string to sink logger. More... | |
void | oxr_slog_abort (struct oxr_sink_logger *slog) |
Abort logging, frees all internal data. More... | |
void | oxr_log_slog (struct oxr_logger *log, struct oxr_sink_logger *slog) |
Flush sink as a log message, frees all internal data. More... | |
void | oxr_warn_slog (struct oxr_logger *log, struct oxr_sink_logger *slog) |
Flush sink as a warning message, frees all internal data. More... | |
XrResult | oxr_error_slog (struct oxr_logger *log, XrResult res, struct oxr_sink_logger *slog) |
Flush sink as a error message, frees all internal data. More... | |
Logging functions.
#define ENTRY | ( | NAME, | |
VALUE | |||
) | case VALUE: return #NAME; |
XrResult oxr_error | ( | struct oxr_logger * | logger, |
XrResult | result, | ||
const char * | fmt, | ||
... | |||
) |
Trigger a debugger breakpoint.
Referenced by oxr_action_enumerate_bound_sources(), oxr_action_get_current_interaction_profile(), oxr_action_get_input_source_localized_name(), oxr_create_messenger(), oxr_error_slog(), oxr_session_enumerate_formats(), oxr_space_action_relation(), oxr_system_enumerate_view_conf_views(), oxr_system_get_view_conf_properties(), oxr_system_select(), oxr_system_verify_id(), oxr_verify_fixed_size_single_level_path(), oxr_verify_full_path(), oxr_verify_localized_name(), oxr_verify_subaction_path_get(), oxr_verify_subaction_path_sync(), oxr_verify_XrGraphicsBindingOpenGLXlibKHR(), oxr_verify_XrGraphicsBindingVulkanKHR(), oxr_verify_XrSessionCreateInfo(), oxr_vk_get_physical_device(), oxr_xrApplyHapticFeedback(), oxr_xrCreateInstance(), oxr_xrCreateSwapchain(), oxr_xrEnumerateSwapchainImages(), oxr_xrGetActionStateBoolean(), oxr_xrGetActionStateFloat(), oxr_xrGetActionStatePose(), oxr_xrGetActionStateVector2f(), oxr_xrGetReferenceSpaceBoundsRect(), oxr_xrLocateViews(), oxr_xrPathToString(), oxr_xrSessionBeginDebugUtilsLabelRegionEXT(), oxr_xrSessionEndDebugUtilsLabelRegionEXT(), oxr_xrSessionInsertDebugUtilsLabelEXT(), oxr_xrSetDebugUtilsObjectNameEXT(), oxr_xrStopHapticFeedback(), and oxr_xrSyncActions().
XrResult oxr_error_slog | ( | struct oxr_logger * | log, |
XrResult | res, | ||
struct oxr_sink_logger * | slog | ||
) |
Flush sink as a error message, frees all internal data.
References oxr_error(), and oxr_sink_logger::store.
void oxr_log | ( | struct oxr_logger * | logger, |
const char * | fmt, | ||
... | |||
) |
References oxr_logger::api_func_name.
Referenced by oxr_log_slog().
void oxr_log_set_instance | ( | struct oxr_logger * | logger, |
struct oxr_instance * | inst | ||
) |
References oxr_logger::inst.
void oxr_log_slog | ( | struct oxr_logger * | log, |
struct oxr_sink_logger * | slog | ||
) |
Flush sink as a log message, frees all internal data.
References oxr_log(), and oxr_sink_logger::store.
void oxr_slog | ( | struct oxr_sink_logger * | slog, |
const char * | fmt, | ||
... | |||
) |
Log string to sink logger.
void oxr_slog_abort | ( | struct oxr_sink_logger * | slog | ) |
Abort logging, frees all internal data.
void oxr_warn | ( | struct oxr_logger * | logger, |
const char * | fmt, | ||
... | |||
) |
References oxr_logger::api_func_name.
Referenced by oxr_classify_sub_action_paths(), oxr_warn_slog(), and oxr_xrSubmitDebugUtilsMessageEXT().
void oxr_warn_slog | ( | struct oxr_logger * | log, |
struct oxr_sink_logger * | slog | ||
) |
Flush sink as a warning message, frees all internal data.
References oxr_warn(), and oxr_sink_logger::store.