From 2a2157af66ddef6a1a3b066be5355ff2f85c3b36 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Fri, 12 Jun 2020 16:51:27 -0500 Subject: [PATCH] st/oxr: Clean up comments --- src/xrt/state_trackers/oxr/oxr_input.c | 6 +++++- src/xrt/state_trackers/oxr/oxr_objects.h | 10 ++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/xrt/state_trackers/oxr/oxr_input.c b/src/xrt/state_trackers/oxr/oxr_input.c index 725c439a0..e4536f243 100644 --- a/src/xrt/state_trackers/oxr/oxr_input.c +++ b/src/xrt/state_trackers/oxr/oxr_input.c @@ -229,7 +229,7 @@ oxr_action_create(struct oxr_logger *log, /* * - * "Exproted" helper functions. + * "Exported" helper functions. * */ @@ -365,6 +365,10 @@ do_outputs(struct oxr_binding *bind, return found; } +/*! + * Delegate to @ref do_outputs or @ref do_inputs depending on whether the action + * is output or input. + */ static bool do_io_bindings(struct oxr_binding *b, struct oxr_action *act, diff --git a/src/xrt/state_trackers/oxr/oxr_objects.h b/src/xrt/state_trackers/oxr/oxr_objects.h index aa6dc3e43..afe14a302 100644 --- a/src/xrt/state_trackers/oxr/oxr_objects.h +++ b/src/xrt/state_trackers/oxr/oxr_objects.h @@ -1292,7 +1292,10 @@ struct oxr_sub_paths */ struct oxr_source_set { - //! Common structure for things referred to by OpenXR handles. + /*! + * While this isn't an OpenXR handle type, we're using the handle base + * here to easily handle ownership and destruction. + */ struct oxr_handle_base handle; //! Owning session. @@ -1387,7 +1390,10 @@ struct oxr_source_cache */ struct oxr_source { - //! Common structure for things referred to by OpenXR handles. + /*! + * While this isn't an OpenXR handle type, we're using the handle base + * here to easily handle ownership and destruction. + */ struct oxr_handle_base handle; //! Type the action this source was created from is.