Monado OpenXR Runtime
ipc_client_instance.c File Reference

Client side wrapper of instance. More...

#include "xrt/xrt_results.h"
#include "xrt/xrt_instance.h"
#include "xrt/xrt_handles.h"
#include "xrt/xrt_config_os.h"
#include "xrt/xrt_config_android.h"
#include "util/u_var.h"
#include "util/u_misc.h"
#include "util/u_file.h"
#include "util/u_debug.h"
#include "util/u_git_tag.h"
#include "util/u_system_helpers.h"
#include "shared/ipc_protocol.h"
#include "shared/ipc_shmem.h"
#include "client/ipc_client.h"
#include "client/ipc_client_interface.h"
#include "client/ipc_client_connection.h"
#include "ipc_client_generated.h"
#include <stdio.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <limits.h>
Include dependency graph for ipc_client_instance.c:

Data Structures

struct  ipc_client_instance
 

Macros

#define SET_ROLE(ROLE)
 

Functions

static struct ipc_client_instanceipc_client_instance (struct xrt_instance *xinst)
 
static xrt_result_t create_system_compositor (struct ipc_client_instance *ii, struct xrt_device *xdev, struct xrt_system_compositor **out_xsysc)
 
static xrt_result_t ipc_client_instance_create_system (struct xrt_instance *xinst, struct xrt_system **out_xsys, struct xrt_system_devices **out_xsysd, struct xrt_space_overseer **out_xso, struct xrt_system_compositor **out_xsysc)
 
static xrt_result_t ipc_client_instance_get_prober (struct xrt_instance *xinst, struct xrt_prober **out_xp)
 
static void ipc_client_instance_destroy (struct xrt_instance *xinst)
 

Detailed Description

Macro Definition Documentation

◆ SET_ROLE

#define SET_ROLE (   ROLE)
Value:
do { \
int32_t index = ii->ipc_c.ism->roles.ROLE; \
xsysd->static_roles.ROLE = index >= 0 ? xsysd->xdevs[index] : NULL; \
} while (false)