diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-05 21:25:00 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-05 21:25:00 +0000 |
commit | 0b9b873a5505de6fdfb8f02cfbaef5fc82831a5f (patch) | |
tree | f034330734848ce9df96ee94ab4dc6a7ad025dc9 /cmd-send-prefix.c | |
parent | ee1a7fded7653ffc2ba68a4188c89a7cb6e1bf1d (diff) | |
download | rtmux-0b9b873a5505de6fdfb8f02cfbaef5fc82831a5f.tar.gz rtmux-0b9b873a5505de6fdfb8f02cfbaef5fc82831a5f.tar.bz2 rtmux-0b9b873a5505de6fdfb8f02cfbaef5fc82831a5f.zip |
Big reorganisation of command-line syntax.
Diffstat (limited to 'cmd-send-prefix.c')
-rw-r--r-- | cmd-send-prefix.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/cmd-send-prefix.c b/cmd-send-prefix.c index c8df7da6..b9c236a6 100644 --- a/cmd-send-prefix.c +++ b/cmd-send-prefix.c @@ -1,4 +1,4 @@ -/* $Id: cmd-send-prefix.c,v 1.13 2008-06-05 16:35:32 nicm Exp $ */ +/* $Id: cmd-send-prefix.c,v 1.14 2008-06-05 21:25:00 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -28,24 +28,25 @@ void cmd_send_prefix_exec(struct cmd *, struct cmd_ctx *); const struct cmd_entry cmd_send_prefix_entry = { "send-prefix", NULL, - CMD_WINDOWONLY_USAGE, + CMD_TARGET_WINDOW_USAGE, 0, - cmd_windowonly_parse, + cmd_target_init, + cmd_target_parse, cmd_send_prefix_exec, - cmd_windowonly_send, - cmd_windowonly_recv, - cmd_windowonly_free, - NULL, - NULL + cmd_target_send, + cmd_target_recv, + cmd_target_free, + cmd_target_print }; void cmd_send_prefix_exec(struct cmd *self, struct cmd_ctx *ctx) { - struct session *s; - struct winlink *wl; + struct cmd_target_data *data = self->data; + struct session *s; + struct winlink *wl; - if ((wl = cmd_windowonly_get(self, ctx, &s)) == NULL) + if ((wl = cmd_find_window(ctx, data->target, &s)) == NULL) return; window_key(wl->window, options_get_number(&s->options, "prefix-key")); |