summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Bindings/PluginManager.h')
-rw-r--r--src/Bindings/PluginManager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h
index fdc1d1e7a..7a54be8e1 100644
--- a/src/Bindings/PluginManager.h
+++ b/src/Bindings/PluginManager.h
@@ -444,6 +444,12 @@ private:
/** Returns the folders that are specified in the settings ini to load plugins from. */
AStringVector GetFoldersToLoad(cSettingsRepositoryInterface & a_Settings);
+
+ /** Calls a_HookFunction on each plugin registered to the hook HookName.
+ Returns false if the action is to continue or true if the plugin wants to abort.
+ Accessible only from within PluginManager.cpp */
+ template <typename HookFunction>
+ bool GenericCallHook(PluginHook a_HookName, HookFunction a_HookFunction);
} ; // tolua_export