diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-29 14:57:07 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-29 14:57:07 +0000 |
commit | fa537abf8384ce9ebd285749314c05bd2abd25ad (patch) | |
tree | f0c57728b7a5c2ec2e5ae5d4f73db5c639c70276 /client-msg.c | |
parent | 1e316cfc7c0623038f850de1a2f2688497c51914 (diff) |
tmux new-session -d.
Diffstat (limited to 'client-msg.c')
-rw-r--r-- | client-msg.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/client-msg.c b/client-msg.c index ec0c6c8e..8ecc38d0 100644 --- a/client-msg.c +++ b/client-msg.c @@ -1,4 +1,4 @@ -/* $Id: client-msg.c,v 1.3 2007-09-26 18:50:49 nicm Exp $ */ +/* $Id: client-msg.c,v 1.4 2007-09-29 14:57:07 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -26,6 +26,7 @@ int client_msg_fn_output(struct hdr *, struct client_ctx *, char **); int client_msg_fn_pause(struct hdr *, struct client_ctx *, char **); +int client_msg_fn_done(struct hdr *, struct client_ctx *, char **); int client_msg_fn_exit(struct hdr *, struct client_ctx *, char **); int client_msg_fn_error(struct hdr *, struct client_ctx *, char **); @@ -37,6 +38,7 @@ struct client_msg { struct client_msg client_msg_table[] = { { MSG_OUTPUT, client_msg_fn_output }, { MSG_PAUSE, client_msg_fn_pause }, + { MSG_DONE, client_msg_fn_done }, { MSG_EXIT, client_msg_fn_exit }, { MSG_ERROR, client_msg_fn_error }, }; @@ -100,6 +102,16 @@ client_msg_fn_exit( return (-1); } +/* Done message from server. */ +int +client_msg_fn_done( + struct hdr *hdr, unused struct client_ctx *cctx, unused char **error) +{ + if (hdr->size != 0) + fatalx("bad MSG_DONE size"); + return (0); +} + /* Error message from server. */ int client_msg_fn_error(struct hdr *hdr, struct client_ctx *cctx, char **error) |