mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Instead of using large buffers in imsgs, add the data or path onto the end.
This commit is contained in:
12
tmux.h
12
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;
|
||||
|
Reference in New Issue
Block a user