NAME
xy_adapter_t - Adapter for dispatching hook calls to modules.
SYNOPSIS
#include <xy.h>
Data Fields
char name [64]
Name of the hook (e.g., on_tick").
size_t arg_size
Size of the arguments struct.
size_t ret_size
Size of the return type.
void(* call )(void *, void *, void *)
Internal call dispatcher.
int hook_id
Monotonic hook ID assigned by xy_areg(); used for O(1) dispatch. Zero-initialised by XY_IMPL; filled in by xy_areg() on first registration.
char ret [XY_MAX_RET_SIZE]
Buffer for last return value.
unsigned ran
Number of modules that ran this hook.
Detailed Description
Adapter for dispatching hook calls to modules.
This struct is used internally to route calls to all modules that implement a given hook. Created automatically by XY_IMPL.
Author
Generated automatically by Doxygen for libxylem from the source code.