35 oxr_handle_destroyer destroy,
47 oxr_handle_destroyer destroy,
62 #define OXR_ALLOCATE_HANDLE(LOG, OUT, DEBUG, DESTROY, PARENT) \ 63 oxr_handle_allocate_and_init(LOG, sizeof(*OUT), DEBUG, DESTROY, \ 64 PARENT, (void **)&OUT) 78 #define OXR_ALLOCATE_HANDLE_OR_RETURN(LOG, OUT, DEBUG, DESTROY, PARENT) \ 80 XrResult allocResult = \ 81 OXR_ALLOCATE_HANDLE(LOG, OUT, DEBUG, DESTROY, PARENT); \ 82 if (allocResult != XR_SUCCESS) { \ Logger struct that lives on the stack, one for each call client call.
Definition: oxr_logger.h:36
XrResult oxr_handle_init(struct oxr_logger *log, struct oxr_handle_base *hb, uint64_t debug, oxr_handle_destroyer destroy, struct oxr_handle_base *parent)
Initialize a handle holder, and if a parent is specified, update its child list to include this handl...
Definition: oxr_handle_base.c:55
XrResult oxr_handle_allocate_and_init(struct oxr_logger *log, size_t size, uint64_t debug, oxr_handle_destroyer destroy, struct oxr_handle_base *parent, void **out)
Allocate some memory for use as a handle, and initialize it as a handle.
Definition: oxr_handle_base.c:109
Contains the instance struct that a lot of things hang from.
Used to hold diverse child handles and ensure orderly destruction.
Definition: oxr_objects.h:807