aboutsummaryrefslogtreecommitdiff
path: root/sftsr.h
diff options
context:
space:
mode:
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;