aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2019-12-16 15:48:50 +0000
committernicm <nicm>2019-12-16 15:48:50 +0000
commiteaa58d28dc7da9b2ef0d77f4c8e85aab55b71935 (patch)
treec6e7cf718c7a5d8f7348c2e178a7114c5a41c030 /tmux.h
parent21f9b39f060006fe769034ac2bb9b71d0a910f80 (diff)
downloadrtmux-eaa58d28dc7da9b2ef0d77f4c8e85aab55b71935.tar.gz
rtmux-eaa58d28dc7da9b2ef0d77f4c8e85aab55b71935.tar.bz2
rtmux-eaa58d28dc7da9b2ef0d77f4c8e85aab55b71935.zip
Instead of using large buffers in imsgs, add the data or path onto the end.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/tmux.h b/tmux.h
index 60e55475..84b2056c 100644
--- a/tmux.h
+++ b/tmux.h
@@ -507,13 +507,10 @@ struct msg_command {
struct msg_read_open {
int stream;
int fd;
- char path[PATH_MAX];
-};
+}; /* followed by path */
struct msg_read_data {
int stream;
- size_t size;
- char data[BUFSIZ];
};
struct msg_read_done {
@@ -524,15 +521,12 @@ struct msg_read_done {
struct msg_write_open {
int stream;
int fd;
- char path[PATH_MAX];
int flags;
-};
+}; /* followed by path */
struct msg_write_data {
int stream;
- size_t size;
- char data[BUFSIZ];
-};
+}; /* followed by data */
struct msg_write_ready {
int stream;