summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2018-03-02 11:40:48 +0100
committerGitHub <noreply@github.com>2018-03-02 11:40:48 +0100
commit4f26f653e1ae168a050f3eca3e8073eca3f10367 (patch)
tree9f43571855964c5d8fe869cd8b7d5576a6ef98ac /src/Bindings/PluginManager.h
parentcLightingThread: Faster chunk reading (#4185) (diff)
downloadcuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.tar
cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.tar.gz
cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.tar.bz2
cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.tar.lz
cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.tar.xz
cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.tar.zst
cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.zip
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