aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-01-31 12:01:43 +0000
committerTiago Cunha <tcunha@gmx.com>2012-01-31 12:01:43 +0000
commit2ee0d851d92c00c13998c112618feb84df323ad2 (patch)
tree926ca8c1888921a00edc20a78f954fa60117e1f2 /tmux.h
parentc08a532440a5aeeed58ce10b8e4ac9a409555ea7 (diff)
downloadrtmux-2ee0d851d92c00c13998c112618feb84df323ad2.tar.gz
rtmux-2ee0d851d92c00c13998c112618feb84df323ad2.tar.bz2
rtmux-2ee0d851d92c00c13998c112618feb84df323ad2.zip
Sync OpenBSD patchset 1017:
Give each window a unique id, like panes but prefixed with @. Based on work from George Nachman.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 069c53ef..270a0d95 100644
--- a/tmux.h
+++ b/tmux.h
@@ -844,6 +844,7 @@ RB_HEAD(window_pane_tree, window_pane);
/* Window structure. */
struct window {
+ u_int id;
char *name;
struct event name_timer;
struct timeval silence_timer;
@@ -1901,6 +1902,7 @@ int window_pane_cmp(struct window_pane *, struct window_pane *);
RB_PROTOTYPE(window_pane_tree, window_pane, tree_entry, window_pane_cmp);
struct winlink *winlink_find_by_index(struct winlinks *, int);
struct winlink *winlink_find_by_window(struct winlinks *, struct window *);
+struct winlink *winlink_find_by_window_id(struct winlinks *, u_int);
int winlink_next_index(struct winlinks *, int);
u_int winlink_count(struct winlinks *);
struct winlink *winlink_add(struct winlinks *, int);
@@ -1915,6 +1917,7 @@ struct winlink *winlink_previous_by_number(struct winlink *, struct session *,
void winlink_stack_push(struct winlink_stack *, struct winlink *);
void winlink_stack_remove(struct winlink_stack *, struct winlink *);
int window_index(struct window *, u_int *);
+struct window *window_find_by_id(u_int);
struct window *window_create1(u_int, u_int);
struct window *window_create(const char *, const char *, const char *,
const char *, struct environ *, struct termios *,