The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

xrt: Typedefs have a _t suffix

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
116d1a9b 126dbb54

+33 -33
+1 -1
src/xrt/drivers/hdk/hdk_interface.h
··· 31 31 * Probing function for HDK devices. 32 32 * 33 33 * @ingroup drv_hdk 34 - * @see xrt_prober_found_function_t 34 + * @see xrt_prober_found_func_t 35 35 */ 36 36 int 37 37 hdk_found(struct xrt_prober *xp,
+1 -1
src/xrt/drivers/hydra/hydra_interface.h
··· 29 29 * Probing function for Razer Hydra devices. 30 30 * 31 31 * @ingroup drv_hydra 32 - * @see xrt_prober_found_function_t 32 + * @see xrt_prober_found_func_t 33 33 */ 34 34 int 35 35 hydra_found(struct xrt_prober *xp,
+1 -1
src/xrt/drivers/psmv/psmv_interface.h
··· 29 29 * Probing function for the PS Move devices. 30 30 * 31 31 * @ingroup drv_psmv 32 - * @see xrt_prober_found_function_t 32 + * @see xrt_prober_found_func_t 33 33 */ 34 34 int 35 35 psmv_found(struct xrt_prober *xp,
+1 -1
src/xrt/drivers/ultraleap_v2/ulv2_interface.h
··· 33 33 * Probing function for Leap Motion Controller. 34 34 * 35 35 * @ingroup drv_ulv2 36 - * @see xrt_prober_found_function_t 36 + * @see xrt_prober_found_func_t 37 37 */ 38 38 int 39 39 ulv2_found(struct xrt_prober *xp,
+2 -2
src/xrt/drivers/vive/vive_prober.h
··· 43 43 * Probing function for Vive devices. 44 44 * 45 45 * @ingroup drv_vive 46 - * @see xrt_prober_found_function_t 46 + * @see xrt_prober_found_func_t 47 47 */ 48 48 int 49 49 vive_found(struct xrt_prober *xp, ··· 58 58 * Probing function for HTC Vive and Valve Index controllers. 59 59 * 60 60 * @ingroup drv_vive 61 - * @see xrt_prober_found_function_t 61 + * @see xrt_prober_found_func_t 62 62 */ 63 63 int 64 64 vive_controller_found(struct xrt_prober *xp,
+1 -1
src/xrt/drivers/wmr/wmr_interface.h
··· 27 27 * Probing function for Windows Mixed Reality devices. 28 28 * 29 29 * @ingroup drv_wmr 30 - * @see xrt_prober_found_function_t 30 + * @see xrt_prober_found_func_t 31 31 */ 32 32 int 33 33 wmr_found(struct xrt_prober *xp,
+19 -19
src/xrt/include/xrt/xrt_prober.h
··· 1 - // Copyright 2019-2021, Collabora, Ltd. 1 + // Copyright 2019-2022, Collabora, Ltd. 2 2 // SPDX-License-Identifier: BSL-1.0 3 3 /*! 4 4 * @file ··· 57 57 * 58 58 * @return the number of elements of @p out_xdevs populated by this call. 59 59 */ 60 - typedef int (*xrt_prober_found_function_t)(struct xrt_prober *xp, 61 - struct xrt_prober_device **devices, 62 - size_t num_devices, 63 - size_t index, 64 - cJSON *attached_data, 65 - struct xrt_device **out_xdevs); 60 + typedef int (*xrt_prober_found_func_t)(struct xrt_prober *xp, 61 + struct xrt_prober_device **devices, 62 + size_t num_devices, 63 + size_t index, 64 + cJSON *attached_data, 65 + struct xrt_device **out_xdevs); 66 66 67 67 /*! 68 68 * Entry for a single device. ··· 84 84 /*! 85 85 * Handler that gets called when a device matching vendor and product ID is detected. 86 86 * 87 - * @see xrt_prober_found_function_t 87 + * @see xrt_prober_found_func_t 88 88 */ 89 - xrt_prober_found_function_t found; 89 + xrt_prober_found_func_t found; 90 90 91 91 /*! 92 92 * A human-readable name for the device associated with this VID/PID. ··· 106 106 * 107 107 * @ingroup xrt_iface 108 108 */ 109 - typedef struct xrt_auto_prober *(*xrt_auto_prober_creator)(); 109 + typedef struct xrt_auto_prober *(*xrt_auto_prober_create_func_t)(); 110 110 111 111 /*! 112 112 * Main root of all of the probing device. ··· 124 124 /*! 125 125 * A null terminated list of @ref xrt_auto_prober creation functions. 126 126 */ 127 - xrt_auto_prober_creator *auto_probers; 127 + xrt_auto_prober_create_func_t *auto_probers; 128 128 129 129 /*! 130 130 * Allows you to chain multiple prober entry lists. ··· 186 186 * 187 187 * @ingroup xrt_iface 188 188 */ 189 - typedef void (*xrt_prober_list_video_cb)(struct xrt_prober *xp, 190 - struct xrt_prober_device *pdev, 191 - const char *product, 192 - const char *manufacturer, 193 - const char *serial, 194 - void *ptr); 189 + typedef void (*xrt_prober_list_video_func_t)(struct xrt_prober *xp, 190 + struct xrt_prober_device *pdev, 191 + const char *product, 192 + const char *manufacturer, 193 + const char *serial, 194 + void *ptr); 195 195 196 196 /*! 197 197 * The main prober that probes and manages found but not opened HMD devices ··· 263 263 struct xrt_frame_context *xfctx, 264 264 struct xrt_fs **out_xfs); 265 265 266 - int (*list_video_devices)(struct xrt_prober *xp, xrt_prober_list_video_cb cb, void *ptr); 266 + int (*list_video_devices)(struct xrt_prober *xp, xrt_prober_list_video_func_t cb, void *ptr); 267 267 268 268 int (*get_entries)(struct xrt_prober *xp, 269 269 size_t *out_entry_count, ··· 411 411 * @public @memberof xrt_prober 412 412 */ 413 413 static inline int 414 - xrt_prober_list_video_devices(struct xrt_prober *xp, xrt_prober_list_video_cb cb, void *ptr) 414 + xrt_prober_list_video_devices(struct xrt_prober *xp, xrt_prober_list_video_func_t cb, void *ptr) 415 415 { 416 416 return xp->list_video_devices(xp, cb, ptr); 417 417 }
+3 -3
src/xrt/state_trackers/prober/p_prober.c
··· 1 - // Copyright 2019, Collabora, Ltd. 1 + // Copyright 2019-2022, Collabora, Ltd. 2 2 // SPDX-License-Identifier: BSL-1.0 3 3 /*! 4 4 * @file ··· 100 100 struct xrt_fs **out_xfs); 101 101 102 102 static int 103 - p_list_video_devices(struct xrt_prober *xp, xrt_prober_list_video_cb cb, void *ptr); 103 + p_list_video_devices(struct xrt_prober *xp, xrt_prober_list_video_func_t cb, void *ptr); 104 104 105 105 static int 106 106 p_get_entries(struct xrt_prober *xp, ··· 1008 1008 } 1009 1009 1010 1010 static int 1011 - p_list_video_devices(struct xrt_prober *xp, xrt_prober_list_video_cb cb, void *ptr) 1011 + p_list_video_devices(struct xrt_prober *xp, xrt_prober_list_video_func_t cb, void *ptr) 1012 1012 { 1013 1013 struct prober *p = (struct prober *)xp; 1014 1014
+2 -2
src/xrt/targets/common/target_lists.c
··· 1 - // Copyright 2019-2020, Collabora, Ltd. 1 + // Copyright 2019-2022, Collabora, Ltd. 2 2 // SPDX-License-Identifier: BSL-1.0 3 3 /*! 4 4 * @file ··· 157 157 NULL, // Terminate 158 158 }; 159 159 160 - xrt_auto_prober_creator target_auto_list[] = { 160 + xrt_auto_prober_create_func_t target_auto_list[] = { 161 161 #ifdef XRT_BUILD_DRIVER_PSVR 162 162 psvr_create_auto_prober, 163 163 #endif
+2 -2
src/xrt/targets/common/target_lists.h
··· 1 - // Copyright 2019, Collabora, Ltd. 1 + // Copyright 2019-2022, Collabora, Ltd. 2 2 // SPDX-License-Identifier: BSL-1.0 3 3 /*! 4 4 * @file ··· 12 12 13 13 extern struct xrt_prober_entry target_entry_list[]; 14 14 extern struct xrt_prober_entry *target_entry_lists[]; 15 - extern xrt_auto_prober_creator target_auto_list[]; 15 + extern xrt_auto_prober_create_func_t target_auto_list[]; 16 16 extern struct xrt_prober_entry_lists target_lists;