Monado OpenXR Runtime
cli_cmd_test.c File Reference

Prints a list of found devices and tests opening some of them. More...

#include "xrt/xrt_space.h"
#include "xrt/xrt_system.h"
#include "xrt/xrt_prober.h"
#include "xrt/xrt_instance.h"
#include "cli_common.h"
#include <string.h>
#include <stdio.h>
Include dependency graph for cli_cmd_test.c:

Macros

#define NUM_XDEVS   32
 
#define PRINT_ROLE(ROLE, PAD)
 
#define PRINT_DYNR(ROLE, PAD)
 

Functions

static int do_exit (struct xrt_instance **xi_ptr, int ret)
 
int cli_cmd_test (int argc, const char **argv)
 

Detailed Description

Prints a list of found devices and tests opening some of them.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m
Korcan Hussein korca.nosp@m.n.hu.nosp@m.ssein.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

◆ PRINT_DYNR

#define PRINT_DYNR (   ROLE,
  PAD 
)
Value:
do { \
if (roles.ROLE < 0) { \
printf("\t" #ROLE ": " PAD "<none>\n"); \
} else { \
printf("\t" #ROLE ": " PAD "%s\n", xsysd->xdevs[roles.ROLE]->str); \
} \
} while (false)

◆ PRINT_ROLE

#define PRINT_ROLE (   ROLE,
  PAD 
)
Value:
do { \
if (xsysd->static_roles.ROLE == NULL) { \
printf("\t" #ROLE ": " PAD "<none>\n"); \
} else { \
printf("\t" #ROLE ": " PAD "%s\n", xsysd->static_roles.ROLE->str); \
} \
} while (false)