diff options
Diffstat (limited to 'src/ChannelCallback.h')
-rw-r--r-- | src/ChannelCallback.h | 14 |
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); +}; |