|
Entropic 2.3.8
Local-first agentic inference engine
|
C API implementation for hook registration and deregistration. More...

Go to the source code of this file.
Functions | |
| static entropic::HookRegistry * | get_registry (entropic_handle_t handle) |
| Resolve HookRegistry from engine handle. | |
| ENTROPIC_EXPORT entropic_error_t | entropic_register_hook (entropic_handle_t handle, entropic_hook_point_t hook_point, entropic_hook_callback_t callback, void *user_data, int priority) |
| Register a hook callback for a hook point. | |
| ENTROPIC_EXPORT entropic_error_t | entropic_deregister_hook (entropic_handle_t handle, entropic_hook_point_t hook_point, entropic_hook_callback_t callback, void *user_data) |
| Deregister a previously registered hook callback. | |
Variables | |
| static auto | logger = entropic::log::get("facade.hooks") |
C API implementation for hook registration and deregistration.
v1.8.9: Returned ENTROPIC_ERROR_NOT_IMPLEMENTED. v1.9.1: Full implementation delegating to HookRegistry.
Definition in file entropic_hooks.cpp.
| ENTROPIC_EXPORT entropic_error_t entropic_deregister_hook | ( | entropic_handle_t | handle, |
| entropic_hook_point_t | hook_point, | ||
| entropic_hook_callback_t | callback, | ||
| void * | user_data | ||
| ) |
Deregister a previously registered hook callback.
Definition at line 68 of file entropic_hooks.cpp.
| ENTROPIC_EXPORT entropic_error_t entropic_register_hook | ( | entropic_handle_t | handle, |
| entropic_hook_point_t | hook_point, | ||
| entropic_hook_callback_t | callback, | ||
| void * | user_data, | ||
| int | priority | ||
| ) |
Register a hook callback for a hook point.
Register a callback for an engine hook point.
Definition at line 42 of file entropic_hooks.cpp.
|
static |
Resolve HookRegistry from engine handle.
Accesses the hook_registry member of the entropic_engine struct. The handle is validated by the caller (null check before call).
| handle | Engine handle (must not be NULL). |
Definition at line 30 of file entropic_hooks.cpp.
|
static |
Definition at line 17 of file entropic_hooks.cpp.