diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-26 10:35:24 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-26 10:35:24 +0000 |
commit | 671694ac3037055c35521f438615e4ce9daafda3 (patch) | |
tree | 7ee663fadd0071e444d00f8b6374a320d869fc02 /tmux.h | |
parent | 3fef2d998fb0fd1f4fd9f4b96c33816acf523567 (diff) | |
download | rtmux-671694ac3037055c35521f438615e4ce9daafda3.tar.gz rtmux-671694ac3037055c35521f438615e4ce9daafda3.tar.bz2 rtmux-671694ac3037055c35521f438615e4ce9daafda3.zip |
Cleanup part 1: split up server.c.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.10 2007-09-22 11:50:33 nicm Exp $ */ +/* $Id: tmux.h,v 1.11 2007-09-26 10:35:24 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -420,14 +420,6 @@ struct client { u_int sy; struct session *session; - - /* User input. */ - const char *prompt; - char *buf; - size_t len; - size_t idx; - void (*callback)(struct client *, const char *); - }; ARRAY_DECL(clients, struct client *); @@ -437,8 +429,21 @@ extern int debug_level; extern char socket_path[MAXPATHLEN]; /* server.c */ +extern struct clients clients; int server_start(void); +/* server-msg.c */ +void server_msg_dispatch(struct client *); + +/* server-fn.c */ +void write_message(struct client *, const char *, ...); +void write_client(struct client *, u_int, void *, size_t); +void write_client2( + struct client *, u_int, void *, size_t, void *, size_t); +void write_clients(struct window *, u_int, void *, size_t); +void changed_window(struct client *); +void draw_client(struct client *, u_int, u_int); + /* ansi.c */ void input_key(struct buffer *, int); size_t input_parse(u_char *, size_t, struct buffer *, struct screen *); |