aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-08-11 00:45:15 +0100
committerGravatar Sadie Powell2021-08-17 13:50:51 +0100
commit06a96d121febdc2d42208cbde4cd3f908649452e (patch)
tree16baec1deeb5bd5fac4cfac0e75329bb6d1e7d8b /include
parentReorder some functions in the ModuleManager class. (diff)
Add a detach method that takes an Implementation array.
Diffstat (limited to 'include')
-rw-r--r--include/modules.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index b8c547990..9095ae60e 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1147,6 +1147,15 @@ class CoreExport ModuleManager
*/
bool Detach(Implementation i, Module* mod);
+ /** Detach an array of events from a module
+ * This is not required when your module unloads, as the core will
+ * automatically detach your module from all events it is attached to.
+ * @param i Event types (array) to detach
+ * @param mod Module to detach events from
+ * @param sz The size of the implementation array
+ */
+ void Detach(Implementation* i, Module* mod, size_t sz);
+
/** Detach all events from a module (used on unload)
* @param mod Module to detach from
*/