The open source OpenXR runtime
0
fork

Configure Feed

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

d/remote: Rename r_hub_system_devices_destroy

r_hub_destroy() taking a parameter of type struct xrt_system_devices* was weird.

+4 -4
+4 -4
src/xrt/drivers/remote/r_hub.c
··· 240 240 } 241 241 242 242 static void 243 - r_hub_destroy(struct xrt_system_devices *xsysd) 243 + r_hub_system_devices_destroy(struct xrt_system_devices *xsysd) 244 244 { 245 245 struct r_hub *r = (struct r_hub *)xsysd; 246 246 ··· 281 281 struct r_hub *r = U_TYPED_CALLOC(struct r_hub); 282 282 int ret; 283 283 284 - r->base.destroy = r_hub_destroy; 284 + r->base.destroy = r_hub_system_devices_destroy; 285 285 r->origin.type = XRT_TRACKING_TYPE_RGB; 286 286 r->origin.offset.orientation.w = 1.0f; // All other members are zero. 287 287 r->reset.hmd.pose.position.y = 1.6f; ··· 313 313 ret = os_thread_helper_init(&r->oth); 314 314 if (ret != 0) { 315 315 R_ERROR(r, "Failed to init threading!"); 316 - r_hub_destroy(&r->base); 316 + r_hub_system_devices_destroy(&r->base); 317 317 return XRT_ERROR_ALLOCATION; 318 318 } 319 319 320 320 ret = os_thread_helper_start(&r->oth, run_thread, r); 321 321 if (ret != 0) { 322 322 R_ERROR(r, "Failed to start thread!"); 323 - r_hub_destroy(&r->base); 323 + r_hub_system_devices_destroy(&r->base); 324 324 return XRT_ERROR_ALLOCATION; 325 325 } 326 326