aboutsummaryrefslogtreecommitdiff
path: root/sftsr.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-15 09:32:31 +0200
committerJavier <dev.git@javispedro.com>2022-04-15 09:32:31 +0200
commit528069dc5992bd069a3c1783db50d630c3d355b4 (patch)
treef7557ae7158d5c3bb781961fa695718407975781 /sftsr.h
parenta84f04eb1be124e7fdefb486bf01626ff96d2d04 (diff)
downloadvbados-528069dc5992bd069a3c1783db50d630c3d355b4.tar.gz
vbados-528069dc5992bd069a3c1783db50d630c3d355b4.zip
use different buffer sizes for vbx mouse & sf
Diffstat (limited to 'sftsr.h')
-rw-r--r--sftsr.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sftsr.h b/sftsr.h
index 0e5530c..48ffa4f 100644
--- a/sftsr.h
+++ b/sftsr.h
@@ -33,9 +33,13 @@
/** Maximum number of open files */
#define NUM_FILES 40
-/** Directory enumeration needs an open file, this is its index. */
+/** Directory enumeration needs an open file, this is its index in the "openfile" table. */
#define SEARCH_DIR_FILE 0
+/** Size of the VBox buffer. The maximum message length that may be sent.
+ * Enough to fit an HGCM connect call, which is actually larger than most other calls we use ( <= 7 args ). */
+#define VBOX_BUFFER_SIZE (200)
+
typedef struct {
uint32_t root;
uint64_t handle;
@@ -65,6 +69,7 @@ typedef struct {
// VirtualBox communication
struct vboxcomm vb;
+ char vbbuf[VBOX_BUFFER_SIZE];
uint32_t hgcm_client_id;
} TSRDATA;