Monado OpenXR Runtime
Macros | Functions
oxr_logger.c File Reference

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_includes/openxr_reflection.h"
Include dependency graph for oxr_logger.c:

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...
 

Detailed Description

Logging functions.

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

Function Documentation

◆ oxr_error()

XrResult oxr_error ( struct oxr_logger logger,
XrResult  result,
const char *  fmt,
  ... 
)

◆ oxr_error_slog()

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().

◆ oxr_log_slog()

void oxr_log_slog ( struct oxr_logger log,
struct oxr_sink_logger slog 
)

Flush sink as a log message, frees all internal data.

◆ oxr_slog()

void oxr_slog ( struct oxr_sink_logger slog,
const char *  fmt,
  ... 
)

Log string to sink logger.

◆ oxr_slog_abort()

void oxr_slog_abort ( struct oxr_sink_logger slog)

Abort logging, frees all internal data.

◆ oxr_warn_slog()

void oxr_warn_slog ( struct oxr_logger log,
struct oxr_sink_logger slog 
)

Flush sink as a warning message, frees all internal data.