summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorjsorg71 <jay.sorg@gmail.com>2014-03-04 14:11:02 -0800
committerjsorg71 <jay.sorg@gmail.com>2014-03-04 14:11:02 -0800
commit1ce75182afdf8a0fc5a44691dbada0fdc138d867 (patch)
tree5c6a169ac9707311c4a10e98215901846566a93f /common
parent60dbacc9ffd3b2a9f1f523ecb6426042764233ee (diff)
parent866fde498efe893144b0b596999f18af90a743c3 (diff)
downloadxrdp-proprietary-1ce75182afdf8a0fc5a44691dbada0fdc138d867.tar.gz
xrdp-proprietary-1ce75182afdf8a0fc5a44691dbada0fdc138d867.zip
Merge pull request #111 from speidy/fastpath
libxrdp: Fastpath input
Diffstat (limited to 'common')
-rw-r--r--common/parse.h3
-rw-r--r--common/xrdp_constants.h19
2 files changed, 21 insertions, 1 deletions
diff --git a/common/parse.h b/common/parse.h
index 2829b70a..34170a41 100644
--- a/common/parse.h
+++ b/common/parse.h
@@ -116,7 +116,8 @@ struct stream
(v) = *((unsigned char*)((s)->p)); \
(s)->p++; \
} while (0)
-
+/******************************************************************************/
+#define in_uint8_peek(s, v) do { v = *s->p; } while (0)
/******************************************************************************/
#if defined(B_ENDIAN) || defined(NEED_ALIGN)
#define in_sint16_le(s, v) do \
diff --git a/common/xrdp_constants.h b/common/xrdp_constants.h
index 1844a9d2..2ee034c3 100644
--- a/common/xrdp_constants.h
+++ b/common/xrdp_constants.h
@@ -161,6 +161,7 @@
#define RDP_INPUT_VIRTKEY 2
#define RDP_INPUT_SCANCODE 4
#define RDP_INPUT_MOUSE 0x8001
+#define RDP_INPUT_MOUSEX 0x8002
/* Device flags */
#define KBD_FLAG_RIGHT 0x0001
@@ -560,6 +561,24 @@
#define RDP_CAPSET_LPOINTER 0x27
#define RDP_CAPLEN_LPOINTER 0x06
+/* fastpath input */
+#define FASTPATH_INPUT_SECURE_CHECKSUM 0x1
+#define FASTPATH_INPUT_ENCRYPTED 0x2
+
+#define FASTPATH_INPUT_ACTION_FASTPATH 0x0
+#define FASTPATH_INPUT_ACTION_X224 0x3
+
+#define FASTPATH_INPUT_EVENT_SCANCODE 0x0
+#define FASTPATH_INPUT_EVENT_MOUSE 0x1
+#define FASTPATH_INPUT_EVENT_MOUSEX 0x2
+#define FASTPATH_INPUT_EVENT_SYNC 0x3
+#define FASTPATH_INPUT_EVENT_UNICODE 0x4
+
+#define FASTPATH_INPUT_KBDFLAGS_RELEASE 0x01
+#define FASTPATH_INPUT_KBDFLAGS_EXTENDED 0x02
+
+
+/* fastpath output */
#define FASTPATH_OUTPUT_ACTION_FASTPATH 0x0
#define FASTPATH_OUTPUT_ACTION_X224 0x3