summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-09-26 10:35:24 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-09-26 10:35:24 +0000
commit671694ac3037055c35521f438615e4ce9daafda3 (patch)
tree7ee663fadd0071e444d00f8b6374a320d869fc02 /tmux.h
parent3fef2d998fb0fd1f4fd9f4b96c33816acf523567 (diff)
Cleanup part 1: split up server.c.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/tmux.h b/tmux.h
index 4745e5cf..cb10a3cf 100644
--- a/tmux.h
+++ b/tmux.h
@@ -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 *);