aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-11 06:31:09 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-11 06:31:09 +0000
commitc6be7d3ee67fa5034480bf892440be14c8e10d45 (patch)
treecac0fabb0494b040ad6786b654ad4ff0e1e17a8b /tmux.h
parent89f30822ef879b4a5c7ebeec06e6a2ac77ca78ea (diff)
downloadrtmux-c6be7d3ee67fa5034480bf892440be14c8e10d45.tar.gz
rtmux-c6be7d3ee67fa5034480bf892440be14c8e10d45.tar.bz2
rtmux-c6be7d3ee67fa5034480bf892440be14c8e10d45.zip
Simplify screen/tty write code to eliminate function pointer which is now
unnecessary (it always does the same thing).
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/tmux.h b/tmux.h
index 23bbbac6..03f7e132 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.263 2009-02-10 00:18:06 nicm Exp $ */
+/* $Id: tmux.h,v 1.264 2009-02-11 06:31:09 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -506,9 +506,7 @@ struct screen {
/* Screen write context. */
struct screen_write_ctx {
- void *data;
- void (*write)(void *, enum tty_cmd, ...);
-
+ struct window_pane *wp;
struct screen *s;
};
@@ -1053,9 +1051,8 @@ void tty_keys_free(struct tty *);
int tty_keys_next(struct tty *, int *, u_char *);
/* tty-write.c */
-void tty_write_window(void *, enum tty_cmd, ...);
-void tty_vwrite_window(void *, enum tty_cmd, va_list);
-void tty_write_update_mode(void *, int);
+void tty_write_cmd(struct window_pane *, enum tty_cmd, ...);
+void tty_write_mode(struct window_pane *, int);
/* options-cmd.c */
void set_option_string(struct cmd_ctx *,