summaryrefslogtreecommitdiff
path: root/clientcontrol.h
diff options
context:
space:
mode:
Diffstat (limited to 'clientcontrol.h')
-rw-r--r--clientcontrol.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/clientcontrol.h b/clientcontrol.h
index 38c16dc..599dc5d 100644
--- a/clientcontrol.h
+++ b/clientcontrol.h
@@ -13,12 +13,12 @@
#include "tools/socket.h"
#include "ffnetdev.h"
-enum CCPakType{ ptInfo=0, ptPlayState, ptPlayStateReq };
+enum CCPakType{ ptInfo=0, ptPlayState, ptPlayStateReq, ptStillPicture };
struct SClientControl
{
char pakType;
- char dataLen;
+ int dataLen;
char data[0];
};
@@ -35,6 +35,12 @@ struct SClientControlPlayState
char Speed;
};
+struct SClientControlStillPicture
+{
+ uchar *Data;
+ int Length;
+};
+
// --- cClientControl -------------------------------------------------------------
@@ -65,6 +71,7 @@ public:
static bool SendPlayState(ePlayMode PlayMode, bool bPlay, bool bForward, int iSpeed);
static bool PlayStateReq(void) { return m_Instance->m_bPlayStateReq; };
+ static bool SendStillPicture(const uchar *Data, int Length);
};
inline bool cClientControl::Active(void) {