diff options
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 |
