.TH "xy_adapter_t" 3 "libxylem" \" -*- nroff -*- .ad l .nh .SH NAME xy_adapter_t \- Adapter for dispatching hook calls to modules\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .SS "Data Fields" .in +1c .ti -1c .RI "char \fBname\fP [64]" .br .RI "Name of the hook (e\&.g\&., "on_tick")\&. " .ti -1c .RI "size_t \fBarg_size\fP" .br .RI "Size of the arguments struct\&. " .ti -1c .RI "size_t \fBret_size\fP" .br .RI "Size of the return type\&. " .ti -1c .RI "void(* \fBcall\fP )(void *, void *, void *)" .br .RI "Internal call dispatcher\&. " .ti -1c .RI "int \fBhook_id\fP" .br .RI "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\&. " .ti -1c .RI "char \fBret\fP [\fBXY_MAX_RET_SIZE\fP]" .br .RI "Buffer for last return value\&. " .ti -1c .RI "unsigned \fBran\fP" .br .RI "Number of modules that ran this hook\&. " .in -1c .SH "Detailed Description" .PP 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\&. .SH "Author" .PP Generated automatically by Doxygen for libxylem from the source code\&.