mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-28 05:36:02 +03:00
f15c9df85b
clipboard owner support (MS windows done, X windows partial) added key transfer on ms windows mutex fixes in CClient (had race conditions) faster debug output in ms windows changed temporary screen name to "secondary" network fixes on ms windows (poll returned wrong result) fixed transparent cursor on ms windows
39 lines
1.4 KiB
C
39 lines
1.4 KiB
C
#ifndef PROTOCOLTYPES_H
|
|
#define PROTOCOLTYPES_H
|
|
|
|
#include "BasicTypes.h"
|
|
|
|
// version number
|
|
static const SInt32 kMajorVersion = 0;
|
|
static const SInt32 kMinorVersion = 1;
|
|
|
|
// message codes (trailing NUL is not part of code). codes are
|
|
// grouped into:
|
|
// commands -- request an action, no reply expected
|
|
// queries -- request info
|
|
// data -- send info
|
|
// errors -- notify of error
|
|
static const char kMsgCClose[] = "CBYE"; // server
|
|
static const char kMsgCEnter[] = "CINN%2i%2i"; // server
|
|
static const char kMsgCLeave[] = "COUT"; // server
|
|
static const char kMsgCClipboard[] = "CCLP"; // server/client
|
|
static const char kMsgCScreenSaver[] = "CSEC%1i"; // server
|
|
|
|
static const char kMsgDKeyDown[] = "DKDN%2i%2i"; // server
|
|
static const char kMsgDKeyRepeat[] = "DKRP%2i%2i%2i"; // server
|
|
static const char kMsgDKeyUp[] = "DKUP%2i%2i"; // server
|
|
static const char kMsgDMouseDown[] = "DMDN%1i"; // server
|
|
static const char kMsgDMouseUp[] = "DMUP%1i"; // server
|
|
static const char kMsgDMouseMove[] = "DMMV%2i%2i"; // server
|
|
static const char kMsgDMouseWheel[] = "DMWM%2i"; // server
|
|
static const char kMsgDClipboard[] = "DCLP%4i%s"; // server/client
|
|
static const char kMsgDInfo[] = "DINF%2i%2i%2i"; // client
|
|
|
|
static const char kMsgQClipboard[] = "QCLP%4i"; // server
|
|
static const char kMsgQInfo[] = "QINF"; // server
|
|
|
|
static const char kMsgEIncompatible[] = "EICV";
|
|
|
|
#endif
|
|
|