mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-14 01:30:07 +00:00
d/remote: Take broadcast event sink to create devices
This commit is contained in:
parent
6f60116fa9
commit
223b212ba3
src/xrt
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue