diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-03-25 11:35:56 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-03-25 11:35:56 +0000 |
commit | fc3ca5188f1a2cc580085a29c3ec52c1b8bcc16d (patch) | |
tree | 465864d16f9baf92ae2a8ffa97988db6a9d9265b /usr.bin/tmux/tmux.h | |
parent | 6dec153c674794298c76c4fd46b96ba1e2cbecfb (diff) |
Add time and a command count to control mode guards, based on code from
George Nachman.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 40751b9a8d4..b3088f45edd 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.402 2013/03/25 10:11:45 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.403 2013/03/25 11:35:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1416,6 +1416,9 @@ struct cmd_q { struct cmd_q_item *item; struct cmd *cmd; + time_t time; + u_int number; + void (*emptyfn)(struct cmd_q *); void *data; @@ -1857,6 +1860,7 @@ int cmdq_free(struct cmd_q *); void printflike2 cmdq_print(struct cmd_q *, const char *, ...); void printflike2 cmdq_info(struct cmd_q *, const char *, ...); void printflike2 cmdq_error(struct cmd_q *, const char *, ...); +void cmdq_guard(struct cmd_q *, const char *); void cmdq_run(struct cmd_q *, struct cmd_list *); void cmdq_append(struct cmd_q *, struct cmd_list *); int cmdq_continue(struct cmd_q *); |