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

IPC server handlers for xrt_hand_tracker. More...

#include "xrt/xrt_hand_tracker.h"
#include "xrt/xrt_space.h"
#include "xrt/xrt_system.h"
#include "shared/ipc_protocol.h"
#include "server/ipc_server.h"
#include "server/ipc_server_objects.h"
#include "ipc_server_generated.h"
Include dependency graph for ipc_server_handler_hand_tracker.c:

Macros

#define GET_XHT_OR_RETURN(ICS, ID, XHT)
 

Functions

static bool is_valid_hand_tracker_source (enum xrt_input_name input_name, enum xrt_hand hand)
 
static xrt_result_t validate_create_info (volatile struct ipc_client_state *ics, const struct ipc_hand_tracker_create_info *ipc_info)
 
xrt_result_t ipc_handle_hand_tracker_create (volatile struct ipc_client_state *ics, const struct ipc_hand_tracker_create_info *ipc_info, uint32_t *out_id)
 
xrt_result_t ipc_handle_hand_tracker_locate (volatile struct ipc_client_state *ics, uint32_t id, uint32_t base_space_id, const struct xrt_pose *base_offset, int64_t at_timestamp_ns, struct xrt_hand_tracker_location *out_location)
 
xrt_result_t ipc_handle_hand_tracker_set_output (volatile struct ipc_client_state *ics, uint32_t id, enum xrt_output_name name, const struct xrt_output_value *value)
 
xrt_result_t ipc_handle_hand_tracker_destroy (volatile struct ipc_client_state *ics, uint32_t id)
 

Detailed Description

IPC server handlers for xrt_hand_tracker.

Macro Definition Documentation

◆ GET_XHT_OR_RETURN

#define GET_XHT_OR_RETURN (   ICS,
  ID,
  XHT 
)
Value:
do { \
IPC_CHK_AND_RET((ICS)->server, xret, "ipc_server_objects_get_xht_and_validate"); \
} while (0)
xrt_result_t ipc_server_objects_get_xht_and_validate(volatile struct ipc_client_state *ics, uint32_t id, struct xrt_hand_tracker **out_xht)
Get a hand tracker by ID, must only be called from the per client thread.
Definition ipc_server_objects.c:230
enum xrt_result xrt_result_t
Result type used across Monado.