aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-05 16:35:32 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-05 16:35:32 +0000
commit642c0b00ab43079cd251ec9616963b8a806b3464 (patch)
tree40f2bcf2f39d93feb21481a8547f267166f627f0 /tmux.h
parent7325fea37dd75ac89828c6cfdfbcbd8d54548241 (diff)
downloadrtmux-642c0b00ab43079cd251ec9616963b8a806b3464.tar.gz
rtmux-642c0b00ab43079cd251ec9616963b8a806b3464.tar.bz2
rtmux-642c0b00ab43079cd251ec9616963b8a806b3464.zip
Easy bits of arg printing for list-keys.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h55
1 files changed, 30 insertions, 25 deletions
diff --git a/tmux.h b/tmux.h
index c1ab675f..e96e46ed 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.131 2008-06-04 19:20:10 nicm Exp $ */
+/* $Id: tmux.h,v 1.132 2008-06-05 16:35:32 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -687,12 +687,13 @@ struct cmd_entry {
#define CMD_CANTNEST 0x2
int flags;
- int (*parse)(struct cmd *, void **, int, char **, char **);
- void (*exec)(void *, struct cmd_ctx *);
- void (*send)(void *, struct buffer *);
- void (*recv)(void **, struct buffer *);
- void (*free)(void *);
- void (*init)(void **, int);
+ int (*parse)(struct cmd *, int, char **, char **);
+ void (*exec)(struct cmd *, struct cmd_ctx *);
+ void (*send)(struct cmd *, struct buffer *);
+ void (*recv)(struct cmd *, struct buffer *);
+ void (*free)(struct cmd *);
+ void (*init)(struct cmd *, int);
+ void (*print)(struct cmd *, char *, size_t);
};
/* Generic command data. */
@@ -828,26 +829,30 @@ extern const struct cmd_entry cmd_unlink_window_entry;
/* cmd-generic.c */
#define CMD_CLIENTONLY_USAGE "[-c client-tty]"
-int cmd_clientonly_parse(struct cmd *, void **, int, char **, char **);
-void cmd_clientonly_exec(void *, struct cmd_ctx *);
-void cmd_clientonly_send(void *, struct buffer *);
-void cmd_clientonly_recv(void **, struct buffer *);
-void cmd_clientonly_free(void *);
-struct client *cmd_clientonly_get(void *, struct cmd_ctx *);
+int cmd_clientonly_parse(struct cmd *, int, char **, char **);
+void cmd_clientonly_exec(struct cmd *, struct cmd_ctx *);
+void cmd_clientonly_send(struct cmd *, struct buffer *);
+void cmd_clientonly_recv(struct cmd *, struct buffer *);
+void cmd_clientonly_free(struct cmd *);
+struct client *cmd_clientonly_get(struct cmd *, struct cmd_ctx *);
+void cmd_clientonly_print(struct cmd *, char *, size_t);
#define CMD_SESSIONONLY_USAGE "[-c client-tty|-s session-name]"
-int cmd_sessiononly_parse(struct cmd *, void **, int, char **, char **);
-void cmd_sessiononly_exec(void *, struct cmd_ctx *);
-void cmd_sessiononly_send(void *, struct buffer *);
-void cmd_sessiononly_recv(void **, struct buffer *);
-void cmd_sessiononly_free(void *);
-struct session *cmd_sessiononly_get(void *, struct cmd_ctx *);
+int cmd_sessiononly_parse(struct cmd *, int, char **, char **);
+void cmd_sessiononly_exec(struct cmd *, struct cmd_ctx *);
+void cmd_sessiononly_send(struct cmd *, struct buffer *);
+void cmd_sessiononly_recv(struct cmd *, struct buffer *);
+void cmd_sessiononly_free(struct cmd *);
+struct session *cmd_sessiononly_get(struct cmd *, struct cmd_ctx *);
+void cmd_sessiononly_print(struct cmd *, char *, size_t);
#define CMD_WINDOWONLY_USAGE "[-c client-tty|-s session-name] [-i index]"
-int cmd_windowonly_parse(struct cmd *, void **, int, char **, char **);
-void cmd_windowonly_exec(void *, struct cmd_ctx *);
-void cmd_windowonly_send(void *, struct buffer *);
-void cmd_windowonly_recv(void **, struct buffer *);
-void cmd_windowonly_free(void *);
-struct winlink *cmd_windowonly_get(void *, struct cmd_ctx *, struct session **);
+int cmd_windowonly_parse(struct cmd *, int, char **, char **);
+void cmd_windowonly_exec(struct cmd *, struct cmd_ctx *);
+void cmd_windowonly_send(struct cmd *, struct buffer *);
+void cmd_windowonly_recv(struct cmd *, struct buffer *);
+void cmd_windowonly_free(struct cmd *);
+struct winlink *cmd_windowonly_get(
+ struct cmd *, struct cmd_ctx *, struct session **);
+void cmd_windowonly_print(struct cmd *, char *, size_t);
/* client.c */
int client_init(const char *, struct client_ctx *, int);