diff options
author | nicm <nicm> | 2019-12-16 15:48:50 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-12-16 15:48:50 +0000 |
commit | eaa58d28dc7da9b2ef0d77f4c8e85aab55b71935 (patch) | |
tree | c6e7cf718c7a5d8f7348c2e178a7114c5a41c030 /tmux.h | |
parent | 21f9b39f060006fe769034ac2bb9b71d0a910f80 (diff) | |
download | rtmux-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.h | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -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; |