summaryrefslogtreecommitdiffstats
path: root/src/ChannelCallback.h
diff options
context:
space:
mode:
authorSamuel Barney <sbarney@instructure.com>2016-07-18 22:39:11 +0200
committerSamuel Barney <samjbarney@gmail.com>2016-08-15 19:13:03 +0200
commit24e89bbb2c656224d06aed084b952bbc885e3914 (patch)
treeba75a68cce6ea868acba60ae08efeeccf003736d /src/ChannelCallback.h
parentSwitch out long download/compile links. (#3278) (diff)
downloadcuberite-ChannelManagement.tar
cuberite-ChannelManagement.tar.gz
cuberite-ChannelManagement.tar.bz2
cuberite-ChannelManagement.tar.lz
cuberite-ChannelManagement.tar.xz
cuberite-ChannelManagement.tar.zst
cuberite-ChannelManagement.zip
Diffstat (limited to 'src/ChannelCallback.h')
-rw-r--r--src/ChannelCallback.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ChannelCallback.h b/src/ChannelCallback.h
new file mode 100644
index 000000000..e9fc145f5
--- /dev/null
+++ b/src/ChannelCallback.h
@@ -0,0 +1,14 @@
+#include "Bindings/PluginLua.h"
+
+class cByteBuffer;
+
+class cChannelCallback
+{
+ cLuaState::cCallbackPtr m_Callback;
+ cPluginLua * m_Plugin;
+ cCriticalSection m_CSPlugin;
+public:
+ cChannelCallback(cPluginLua & a_Plugin, cLuaState::cCallbackPtr & a_Callback);
+ void Call(cClientHandle & a_Handle, const cByteBuffer & a_Data);
+ bool BelongsTo(const cPluginLua * a_Plugin);
+};