version 1.273, 2011/03/07 23:46:27 |
version 1.274, 2011/03/27 20:27:27 |
|
|
|
|
/* Child window structure. */ |
/* Child window structure. */ |
struct window_pane { |
struct window_pane { |
|
u_int id; |
|
|
struct window *window; |
struct window *window; |
struct layout_cell *layout_cell; |
struct layout_cell *layout_cell; |
|
|
|
|
void *modedata; |
void *modedata; |
|
|
TAILQ_ENTRY(window_pane) entry; |
TAILQ_ENTRY(window_pane) entry; |
|
RB_ENTRY(window_pane) tree_entry; |
}; |
}; |
TAILQ_HEAD(window_panes, window_pane); |
TAILQ_HEAD(window_panes, window_pane); |
|
RB_HEAD(window_pane_tree, window_pane); |
|
|
/* Window structure. */ |
/* Window structure. */ |
struct window { |
struct window { |
|
|
|
|
/* window.c */ |
/* window.c */ |
extern struct windows windows; |
extern struct windows windows; |
|
extern struct window_pane_tree all_window_panes; |
int winlink_cmp(struct winlink *, struct winlink *); |
int winlink_cmp(struct winlink *, struct winlink *); |
RB_PROTOTYPE(winlinks, winlink, entry, winlink_cmp); |
RB_PROTOTYPE(winlinks, winlink, entry, winlink_cmp); |
|
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_index(struct winlinks *, int); |
struct winlink *winlink_find_by_window(struct winlinks *, struct window *); |
struct winlink *winlink_find_by_window(struct winlinks *, struct window *); |
int winlink_next_index(struct winlinks *, int); |
int winlink_next_index(struct winlinks *, int); |
|
|
u_int window_pane_index(struct window *, struct window_pane *); |
u_int window_pane_index(struct window *, struct window_pane *); |
u_int window_count_panes(struct window *); |
u_int window_count_panes(struct window *); |
void window_destroy_panes(struct window *); |
void window_destroy_panes(struct window *); |
|
struct window_pane *window_pane_find_by_id(u_int); |
struct window_pane *window_pane_create(struct window *, u_int, u_int, u_int); |
struct window_pane *window_pane_create(struct window *, u_int, u_int, u_int); |
void window_pane_destroy(struct window_pane *); |
void window_pane_destroy(struct window_pane *); |
int window_pane_spawn(struct window_pane *, const char *, |
int window_pane_spawn(struct window_pane *, const char *, |