Monado OpenXR Runtime
Loading...
Searching...
No Matches
b_app_policy.c File Reference

Helper to implement xrt_app_instance. More...

#include "util/u_misc.h"
#include "util/u_logging.h"
#include "math/m_api.h"
#include "b_app_policy.h"
Include dependency graph for b_app_policy.c:

Functions

static void app_system_destroy (struct xrt_app_system *xasys)
 Destroys a single b_app_system, only used if it's using the b_app_instance infrastructure.
 
static struct b_app_instance * b_app_instance (struct xrt_app_instance *xsys)
 
static struct b_app_system * b_app_system (struct xrt_app_system *xsys)
 
static struct b_app_system * app_system_create (struct b_app_instance *bainst, struct xrt_system *xsys)
 
static xrt_result_t b_app_system_get_recommended_view_configuration (struct xrt_app_system *xasys, enum xrt_view_type view_type, struct xrt_recommended_view_config *out_recommended_view_config)
 
static xrt_result_t b_app_system_set_recommended_view_configuration (struct xrt_app_system *xasys, enum xrt_view_type view_type, const struct xrt_recommended_view_config *recommended_view_config)
 
static void b_app_instance_destroy (struct xrt_app_instance *xainst)
 
static xrt_result_t b_app_instance_create_app_system (struct xrt_app_instance *xainst, struct xrt_system *xsys, struct xrt_app_system **out_xasys)
 
struct b_app_instance * b_app_instance_create (void)
 
bool b_app_instance_init (struct b_app_instance *bainst, void(*destroy_fn)(struct xrt_app_instance *))
 
void b_app_instance_fini (struct b_app_instance *bainst)
 
bool b_app_system_init (struct xrt_app_instance *xainst, struct b_app_system *basys, struct xrt_system *xsys, void(*destroy_fn)(struct xrt_app_system *))
 
void b_app_system_fini (struct b_app_system *basys)
 

Detailed Description

Function Documentation

◆ app_system_destroy()

static void app_system_destroy ( struct xrt_app_system *  xasys)
static

Destroys a single b_app_system, only used if it's using the b_app_instance infrastructure.

References b_app_instance::app_systems, b_app_instance::count, b_app_instance::storage, and b_app_system::xainst.