summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-05-22 11:07:04 +0000
committernicm <nicm@openbsd.org>2020-05-22 11:07:04 +0000
commitb271fc7f75cb0c6ef8d12edfac5bfc7c75c41cc7 (patch)
treeb1b3ce7c2b33298e96fefb122c26b0b2d854463b /usr.bin/tmux/tmux.h
parentAdd support for the Marvell Xenon SDHC. This is used on the Armada (diff)
downloadwireguard-openbsd-b271fc7f75cb0c6ef8d12edfac5bfc7c75c41cc7.tar.xz
wireguard-openbsd-b271fc7f75cb0c6ef8d12edfac5bfc7c75c41cc7.zip
Move client offset stuff into control.c since only control clients will
need it.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h27
1 files changed, 8 insertions, 19 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index fa603d0720b..0900362c2b2 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.1049 2020/05/21 07:24:13 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.1050 2020/05/22 11:07:05 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -45,6 +45,7 @@ struct cmdq_item;
struct cmdq_list;
struct cmdq_state;
struct cmds;
+struct control_offsets;
struct environ;
struct format_job_tree;
struct format_tree;
@@ -1549,18 +1550,6 @@ struct client_window {
};
RB_HEAD(client_windows, client_window);
-/* Client offsets. */
-struct client_offset {
- u_int pane;
-
- struct window_pane_offset offset;
- int flags;
-#define CLIENT_OFFSET_OFF 0x1
-
- RB_ENTRY(client_offset) entry;
-};
-RB_HEAD(client_offsets, client_offset);
-
/* Client connection. */
typedef int (*prompt_input_cb)(struct client *, void *, const char *, int);
typedef void (*prompt_free_cb)(void *);
@@ -1575,7 +1564,7 @@ struct client {
struct cmdq_list *queue;
struct client_windows windows;
- struct client_offsets offsets;
+ struct control_offsets *offsets;
pid_t pid;
int fd;
@@ -2359,11 +2348,6 @@ void printflike(1, 2) server_add_message(const char *, ...);
/* server-client.c */
RB_PROTOTYPE(client_windows, client_window, entry, server_client_window_cmp);
-RB_PROTOTYPE(client_offsets, client_offset, entry, server_client_offset_cmp);
-struct client_offset *server_client_get_pane_offset(struct client *,
- struct window_pane *);
-struct client_offset *server_client_add_pane_offset(struct client *,
- struct window_pane *);
u_int server_client_how_many(void);
void server_client_set_overlay(struct client *, u_int, overlay_check_cb,
overlay_mode_cb, overlay_draw_cb, overlay_key_cb,
@@ -2830,6 +2814,11 @@ char *parse_window_name(const char *);
/* control.c */
void control_start(struct client *);
+void control_set_pane_on(struct client *, struct window_pane *);
+void control_set_pane_off(struct client *, struct window_pane *);
+struct window_pane_offset *control_pane_offset(struct client *,
+ struct window_pane *, int *);
+void control_free_offsets(struct client *);
void printflike(2, 3) control_write(struct client *, const char *, ...);
void control_write_output(struct client *, struct window_pane *);