The open source OpenXR runtime
0
fork

Configure Feed

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

xrt: Move prober creation functions and struct last

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
3a9ac6aa 116d1a9b

+46 -39
+46 -39
src/xrt/include/xrt/xrt_prober.h
··· 109 109 typedef struct xrt_auto_prober *(*xrt_auto_prober_create_func_t)(); 110 110 111 111 /*! 112 - * Main root of all of the probing device. 113 - * 114 - * @ingroup xrt_iface 115 - */ 116 - struct xrt_prober_entry_lists 117 - { 118 - /*! 119 - * A null terminated list of null terminated lists of 120 - * @ref xrt_prober_entry. 121 - */ 122 - struct xrt_prober_entry **entries; 123 - 124 - /*! 125 - * A null terminated list of @ref xrt_auto_prober creation functions. 126 - */ 127 - xrt_auto_prober_create_func_t *auto_probers; 128 - 129 - /*! 130 - * Allows you to chain multiple prober entry lists. 131 - */ 132 - struct xrt_prober_entry_lists *next; 133 - }; 134 - 135 - /*! 136 112 * Bus type of a device. 137 113 */ 138 114 enum xrt_bus_type ··· 452 428 *xp_ptr = NULL; 453 429 } 454 430 455 - /*! 456 - * Create a prober with a list of known devices and autoprobers. 457 - * 458 - * Typically used by xrt_instance_create implementations to create the prober, 459 - * often with a shared list called `target_list`. 460 - * 461 - * @param[out] out_xp Pointer to xrt_prober pointer, will be populated with 462 - * created xrt_prober instance. 463 - * @param[in] list Prober entry list 464 - * 465 - * @public @memberof xrt_prober 466 - */ 467 - int 468 - xrt_prober_create_with_lists(struct xrt_prober **out_xp, struct xrt_prober_entry_lists *list); 469 - 470 431 471 432 /* 472 433 * ··· 518 479 */ 519 480 void (*destroy)(struct xrt_auto_prober *xap); 520 481 }; 482 + 483 + 484 + /* 485 + * 486 + * Prober creation. 487 + * 488 + */ 489 + 490 + /*! 491 + * Main root of all of the probing device. 492 + * 493 + * @ingroup xrt_iface 494 + */ 495 + struct xrt_prober_entry_lists 496 + { 497 + /*! 498 + * A null terminated list of null terminated lists of 499 + * @ref xrt_prober_entry. 500 + */ 501 + struct xrt_prober_entry **entries; 502 + 503 + /*! 504 + * A null terminated list of @ref xrt_auto_prober creation functions. 505 + */ 506 + xrt_auto_prober_create_func_t *auto_probers; 507 + 508 + /*! 509 + * Allows you to chain multiple prober entry lists. 510 + */ 511 + struct xrt_prober_entry_lists *next; 512 + }; 513 + 514 + /*! 515 + * Create a prober with a list of known devices and autoprobers. 516 + * 517 + * Typically used by xrt_instance_create implementations to create the prober, 518 + * often with a shared list called `target_list`. 519 + * 520 + * @param[out] out_xp Pointer to xrt_prober pointer, will be populated with 521 + * created xrt_prober instance. 522 + * @param[in] list Prober entry list 523 + * 524 + * @public @memberof xrt_prober 525 + */ 526 + int 527 + xrt_prober_create_with_lists(struct xrt_prober **out_xp, struct xrt_prober_entry_lists *list); 521 528 522 529 523 530 #ifdef __cplusplus