diff options
| author | info@mode42.com <info@mode42.com> | 2026-08-09 11:54:17 +0000 |
|---|---|---|
| committer | info@mode42.com <info@mode42.com> | 2026-08-09 11:54:17 +0000 |
| commit | a989bd16c40e04bba5a5404b0ef0cd22f19d2707 (patch) | |
| tree | 604a0439c7d8c022cbd483d62bdc2cfc1c8d18f8 /include/hybbx/service.h | |
| parent | a72e5ea7558e5172c08d397d6f1e0e0f9273e694 (diff) | |
now including entertain/chess
Diffstat (limited to 'include/hybbx/service.h')
| -rw-r--r-- | include/hybbx/service.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/hybbx/service.h b/include/hybbx/service.h index 4730b8b..b9aa7fa 100644 --- a/include/hybbx/service.h +++ b/include/hybbx/service.h @@ -15,6 +15,8 @@ #include "hybbx/storage.h" #include "hybbx/texts.h" +struct hybbx_parsed_command; + #ifdef __cplusplus extern "C" { #endif @@ -167,6 +169,14 @@ struct hybbx_session *hybbx_service_find_registered_session( struct hybbx_circuit_hub; struct hybbx_circuit_hub *hybbx_service_circuit_hub(hybbx_service_t *service); +/** + * Try plugin on_command interceptors. + * Returns HYBBX_OK if a plugin handled the command, HYBBX_ERR_NOT_FOUND otherwise. + */ +hybbx_result_t hybbx_service_try_plugin_command(hybbx_service_t *service, + struct hybbx_session *session, + const struct hybbx_parsed_command *cmd); + #ifdef __cplusplus } #endif |
