summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-21 20:11:48 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-21 20:11:48 +0000
commit78dfafc8ede858a0b7f036e6c190607741072f08 (patch)
tree89afd3d35f93f0ef4634a8e9d272688d6a84a243 /usr.bin/tmux/tmux.h
parentc01b1bf1af4f1e08f1051eec416981fc16dbb54c (diff)
Client tidying: get rid of client_ctx struct in favour of two variables in
client.c, and move the functions in client-fn.c into other files.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h25
1 files changed, 3 insertions, 22 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 337ae28a999..98dda210ae3 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.144 2009/10/21 18:20:16 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.145 2009/10/21 20:11:47 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1052,19 +1052,6 @@ struct client {
};
ARRAY_DECL(clients, struct client *);
-/* Client context. */
-struct client_ctx {
- struct imsgbuf ibuf;
-
- enum {
- CCTX_DETACH,
- CCTX_EXIT,
- CCTX_DIED,
- CCTX_SHUTDOWN
- } exittype;
- const char *errstr;
-};
-
/* Key/command line command. */
struct cmd_ctx {
/*
@@ -1503,14 +1490,8 @@ void cmd_buffer_free(struct cmd *);
size_t cmd_buffer_print(struct cmd *, char *, size_t);
/* client.c */
-int client_init(char *, struct client_ctx *, int, int);
-int client_main(struct client_ctx *);
-int client_msg_dispatch(struct client_ctx *);
-
-/* client-fn.c */
-void client_write_server(struct client_ctx *, enum msgtype, void *, size_t);
-void client_fill_session(struct msg_command_data *);
-void client_suspend(void);
+struct imsgbuf *client_init(char *, int, int);
+__dead void client_main(void);
/* key-bindings.c */
extern struct key_bindings key_bindings;