summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryangwei <[email protected]>2023-11-16 19:21:44 +0800
committeryangwei <[email protected]>2023-11-16 19:21:44 +0800
commit892678bc8a4852543a9169bbc32c7d8562b39cb8 (patch)
treee91af2035c79e63b5383b9556c1e8870f656fccf /include
parent1457a9f4fe5d0c29b3b6fdaf6133f289f2a3b2e7 (diff)
✨ feat(session management): added session_plugin_detach_othersv1.0.1
Implemented a new interface session_plugin_detach_others to modify a session's behavior. This function sets the registered events of all plugins associated with the session to 0, except for the specified plugin_id, effectively detaching other plugins.
Diffstat (limited to 'include')
-rw-r--r--include/stellar/session.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stellar/session.h b/include/stellar/session.h
index f365e6a..964218d 100644
--- a/include/stellar/session.h
+++ b/include/stellar/session.h
@@ -132,6 +132,8 @@ struct session_event;
int stellar_plugin_register(struct stellar *st, int events, session_event_cb_func *cb, void *cb_arg);// register intrinsic event
struct session_event *session_get_intrinsic_event(struct session *sess, int plugin_id);
+void session_plugin_detach_others(struct session *sess, int plugin_id);
+
#include <sys/time.h>
struct session_event *session_event_new(struct stellar *st, struct session *sess, int events, session_event_cb_func *cb, void *cb_arg);