d/remote: Take broadcast event sink to create devices

This commit is contained in:
Jakob Bornecrantz 2023-12-13 20:43:25 +00:00
parent 6f60116fa9
commit 223b212ba3
3 changed files with 11 additions and 4 deletions
src/xrt

View file

@ -401,7 +401,10 @@ r_hub_system_devices_destroy(struct xrt_system_devices *xsysd)
*/
xrt_result_t
r_create_devices(uint16_t port, struct xrt_system_devices **out_xsysd, struct xrt_space_overseer **out_xso)
r_create_devices(uint16_t port,
struct xrt_session_event_sink *broadcast,
struct xrt_system_devices **out_xsysd,
struct xrt_space_overseer **out_xso)
{
struct r_hub *r = U_TYPED_CALLOC(struct r_hub);
int ret;

View file

@ -1,4 +1,4 @@
// Copyright 2020-2022, Collabora, Ltd.
// Copyright 2020-2023, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
@ -20,6 +20,7 @@ extern "C" {
struct xrt_system_devices;
struct xrt_space_overseer;
struct xrt_session_event_sink;
/*!
* @defgroup drv_remote Remote debugging driver
@ -137,7 +138,10 @@ struct r_remote_connection
* @ingroup drv_remote
*/
xrt_result_t
r_create_devices(uint16_t port, struct xrt_system_devices **out_xsysd, struct xrt_space_overseer **out_xso);
r_create_devices(uint16_t port,
struct xrt_session_event_sink *broadcast,
struct xrt_system_devices **out_xsysd,
struct xrt_space_overseer **out_xso);
/*!
* Initializes and connects the connection.

View file

@ -88,7 +88,7 @@ remote_open_system(struct xrt_builder *xb,
port = 4242;
}
return r_create_devices(port, out_xsysd, out_xso);
return r_create_devices(port, broadcast, out_xsysd, out_xso);
}
static void