From 7dc18f68e3dd016d381bef43b943c0c482057e57 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 6 Dec 2007 10:04:43 +0000 Subject: set/reset mode window functions. --- tmux.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index 77901477..90d4549f 100644 --- a/tmux.h +++ b/tmux.h @@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.109 2007-12-06 09:46:23 nicm Exp $ */ +/* $Id: tmux.h,v 1.110 2007-12-06 10:04:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -467,7 +467,7 @@ struct input_ctx { * right function to handle input and output. */ struct window_mode { - void (*init)(struct window *); + struct screen *(*init)(struct window *); void (*free)(struct window *); void (*resize)(struct window *, u_int, u_int); void (*key)(struct window *, int); @@ -905,6 +905,8 @@ struct window *window_create( const char *, const char *, const char **, u_int, u_int); void window_destroy(struct window *); int window_resize(struct window *, u_int, u_int); +int window_set_mode(struct window *, const struct window_mode *); +void window_reset_mode(struct window *); void window_parse(struct window *); void window_key(struct window *, int); -- cgit