Monado OpenXR Runtime
Macros | Functions

Main prober code. More...

#include "util/u_var.h"
#include "util/u_misc.h"
#include "util/u_json.h"
#include "util/u_debug.h"
#include "os/os_hid.h"
#include "p_prober.h"
#include <stdio.h>
#include <string.h>
Include dependency graph for p_prober.c:

Macros

#define ENUM_TO_STR(r)   case r: return #r
 

Functions

int xrt_prober_create_with_lists (struct xrt_prober **out_xp, struct xrt_prober_entry_lists *lists)
 Used by the target binary to create the prober with a list of drivers. More...
 
const char * xrt_prober_string_to_string (enum xrt_prober_string t)
 
const char * xrt_bus_type_to_string (enum xrt_bus_type t)
 
bool xrt_prober_match_string (struct xrt_prober *xp, struct xrt_prober_device *dev, enum xrt_prober_string type, const char *to_match)
 
int p_dev_get_usb_dev (struct prober *p, uint16_t bus, uint16_t addr, uint16_t vendor_id, uint16_t product_id, struct prober_device **out_pdev)
 Get or create a prober_device from the device. More...
 
int p_dev_get_bluetooth_dev (struct prober *p, uint64_t id, uint16_t vendor_id, uint16_t product_id, struct prober_device **out_pdev)
 Get or create a prober_device from the device. More...
 

Detailed Description

Main prober code.

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

Macro Definition Documentation

◆ ENUM_TO_STR

#define ENUM_TO_STR (   r)    case r: return #r

Function Documentation

◆ p_dev_get_bluetooth_dev()

int p_dev_get_bluetooth_dev ( struct prober p,
uint64_t  id,
uint16_t  vendor_id,
uint16_t  product_id,
struct prober_device **  out_pdev 
)

◆ p_dev_get_usb_dev()

int p_dev_get_usb_dev ( struct prober p,
uint16_t  bus,
uint16_t  addr,
uint16_t  vendor_id,
uint16_t  product_id,
struct prober_device **  out_pdev 
)

◆ xrt_bus_type_to_string()

const char* xrt_bus_type_to_string ( enum xrt_bus_type  t)

◆ xrt_prober_match_string()

bool xrt_prober_match_string ( struct xrt_prober xp,
struct xrt_prober_device dev,
enum xrt_prober_string  type,
const char *  to_match 
)

References len.

◆ xrt_prober_string_to_string()

const char* xrt_prober_string_to_string ( enum xrt_prober_string  t)