mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
t/common: Tidy builders a bit [NFC]
This commit is contained in:
parent
972c929333
commit
dbcf753b1e
|
@ -283,6 +283,7 @@ valve_index_hand_track(struct lighthouse_system *lhs,
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* Member functions.
|
||||
|
|
|
@ -369,6 +369,13 @@ ns_setup_depthai_device(struct ns_builder *nsb,
|
|||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* Member functions.
|
||||
*
|
||||
*/
|
||||
|
||||
// Note: We're just checking for the config file's existence
|
||||
static xrt_result_t
|
||||
ns_estimate_system(struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_builder_estimate *estimate)
|
||||
|
|
|
@ -32,14 +32,26 @@ enum u_logging_level nreal_air_log_level;
|
|||
#define NA_WARN(...) U_LOG_IFL_W(nreal_air_log_level, __VA_ARGS__)
|
||||
#define NA_ERROR(...) U_LOG_IFL_E(nreal_air_log_level, __VA_ARGS__)
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* Defines & structs.
|
||||
* Misc stuff.
|
||||
*
|
||||
*/
|
||||
|
||||
DEBUG_GET_ONCE_LOG_OPTION(nreal_air_log, "NA_LOG", U_LOGGING_WARN)
|
||||
|
||||
static const char *driver_list[] = {
|
||||
"nreal_air",
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* Member functions.
|
||||
*
|
||||
*/
|
||||
|
||||
static xrt_result_t
|
||||
nreal_air_estimate_system(struct xrt_builder *xb,
|
||||
cJSON *config,
|
||||
|
@ -181,21 +193,19 @@ fail:
|
|||
return XRT_ERROR_DEVICE_CREATION_FAILED;
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* 'Exported' functions.
|
||||
*
|
||||
*/
|
||||
static const char *driver_list[] = {
|
||||
"nreal_air",
|
||||
};
|
||||
|
||||
static void
|
||||
nreal_air_destroy(struct xrt_builder *xb)
|
||||
{
|
||||
free(xb);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* 'Exported' functions.
|
||||
*
|
||||
*/
|
||||
|
||||
struct xrt_builder *
|
||||
nreal_air_builder_create(void)
|
||||
{
|
||||
|
|
|
@ -40,7 +40,7 @@ enum u_logging_level rift_s_log_level;
|
|||
|
||||
/*
|
||||
*
|
||||
* Defines & structs.
|
||||
* Misc stuff.
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -50,6 +50,17 @@ DEBUG_GET_ONCE_LOG_OPTION(rift_s_log, "RIFT_S_LOG", U_LOGGING_WARN)
|
|||
DEBUG_GET_ONCE_BOOL_OPTION(rift_s_hand_tracking_as_controller, "RIFT_S_HAND_TRACKING_AS_CONTROLLERS", false)
|
||||
#endif
|
||||
|
||||
static const char *driver_list[] = {
|
||||
"rift-s",
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* Member functions.
|
||||
*
|
||||
*/
|
||||
|
||||
static xrt_result_t
|
||||
rift_s_estimate_system(struct xrt_builder *xb,
|
||||
cJSON *config,
|
||||
|
@ -228,21 +239,19 @@ fail:
|
|||
return XRT_ERROR_DEVICE_CREATION_FAILED;
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* 'Exported' functions.
|
||||
*
|
||||
*/
|
||||
static const char *driver_list[] = {
|
||||
"rift-s",
|
||||
};
|
||||
|
||||
static void
|
||||
rift_s_destroy(struct xrt_builder *xb)
|
||||
{
|
||||
free(xb);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* 'Exported' functions.
|
||||
*
|
||||
*/
|
||||
|
||||
struct xrt_builder *
|
||||
rift_s_builder_create(void)
|
||||
{
|
||||
|
|
|
@ -133,6 +133,13 @@ end:
|
|||
return good;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* Member functions.
|
||||
*
|
||||
*/
|
||||
|
||||
static xrt_result_t
|
||||
svr_estimate_system(struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_builder_estimate *estimate)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue