diff options
| author | yangwei <[email protected]> | 2024-09-04 15:26:15 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-09-04 15:26:15 +0800 |
| commit | 5373efdbff046d39648da883ada96a6e0a68a9a5 (patch) | |
| tree | 52c4e819ecbd2ecbf28757a2836dc47db4a223a3 /include | |
| parent | 95581a437e9175745b09cce92de5e9a3f063999e (diff) | |
🦄 refactor(rename plug mgr api): session plug register with hooks
Diffstat (limited to 'include')
| -rw-r--r-- | include/stellar/stellar.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/stellar/stellar.h b/include/stellar/stellar.h index 2cce7db..6d9532b 100644 --- a/include/stellar/stellar.h +++ b/include/stellar/stellar.h @@ -18,8 +18,8 @@ typedef void plugin_on_unload_func(void *plugin_env); typedef void *session_ctx_new_func(struct session *sess, void *plugin_env); typedef void session_ctx_free_func(struct session *sess, void *session_ctx, void *plugin_env); -typedef void session_on_new_func(struct session *sess, void *session_ctx, void *plugin_env); -typedef void session_on_free_func(struct session *sess, void *session_ctx, void *plugin_env); +typedef void on_session_new_func(struct session *sess, void *session_ctx, void *plugin_env); +typedef void on_session_free_func(struct session *sess, void *session_ctx, void *plugin_env); // INTRINSIC TOPIC // TOPIC_TCP_STREAM on_msg need convert msg to (const struct tcp_segment *) @@ -40,11 +40,11 @@ int stellar_session_plugin_register(struct stellar *st, session_ctx_free_func session_ctx_free, void *plugin_env); -int stellar_session_plugin_register_with_hook(struct stellar *st, +int stellar_session_plugin_register_with_hooks(struct stellar *st, session_ctx_new_func session_ctx_new, session_ctx_free_func session_ctx_free, - session_on_new_func session_on_new, - session_on_free_func session_on_free, + on_session_new_func on_session_new, + on_session_free_func on_session_free, void *plugin_env); void stellar_session_plugin_dettach_current_session(struct session *sess); |
