aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2015-04-27 16:25:57 +0000
committernicm <nicm>2015-04-27 16:25:57 +0000
commit95195f52584565483bf9850840f6d81cd88bf9b2 (patch)
tree440e88b83f3d9085e3c9ab5b8931106aa12e6905 /tmux.h
parenta70762c9b50e9d9249fa9a56233c0df4129c82fc (diff)
downloadrtmux-95195f52584565483bf9850840f6d81cd88bf9b2.tar.gz
rtmux-95195f52584565483bf9850840f6d81cd88bf9b2.tar.bz2
rtmux-95195f52584565483bf9850840f6d81cd88bf9b2.zip
Rewrite of the target resolution internals to be simpler and more
consistent but with much less duplication, but keeping the same internal API. Also adds more readable aliases for some of the special tokens used in targets (eg "{start}" instead of "^"). Some behaviours may have changed, for example prefix matches now happen before fnmatch.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/tmux.h b/tmux.h
index 170ad692..ee36f4bb 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1740,8 +1740,19 @@ size_t args_print(struct args *, char *, size_t);
int args_has(struct args *, u_char);
void args_set(struct args *, u_char, const char *);
const char *args_get(struct args *, u_char);
-long long args_strtonum(
- struct args *, u_char, long long, long long, char **);
+long long args_strtonum(struct args *, u_char, long long, long long,
+ char **);
+
+/* cmd-find.c */
+struct session *cmd_find_current(struct cmd_q *);
+struct session *cmd_find_session(struct cmd_q *, const char *, int);
+struct winlink *cmd_find_window(struct cmd_q *, const char *,
+ struct session **);
+struct winlink *cmd_find_pane(struct cmd_q *, const char *, struct session **,
+ struct window_pane **);
+struct client *cmd_find_client(struct cmd_q *, const char *, int);
+int cmd_find_index(struct cmd_q *, const char *,
+ struct session **);
/* cmd.c */
int cmd_pack_argv(int, char **, char *, size_t);
@@ -1756,16 +1767,6 @@ int cmd_mouse_at(struct window_pane *, struct mouse_event *,
struct winlink *cmd_mouse_window(struct mouse_event *, struct session **);
struct window_pane *cmd_mouse_pane(struct mouse_event *, struct session **,
struct winlink **);
-struct session *cmd_current_session(struct cmd_q *, int);
-struct client *cmd_current_client(struct cmd_q *);
-struct client *cmd_find_client(struct cmd_q *, const char *, int);
-struct session *cmd_find_session(struct cmd_q *, const char *, int);
-struct winlink *cmd_find_window(struct cmd_q *, const char *,
- struct session **);
-int cmd_find_index(struct cmd_q *, const char *,
- struct session **);
-struct winlink *cmd_find_pane(struct cmd_q *, const char *, struct session **,
- struct window_pane **);
char *cmd_template_replace(const char *, const char *, int);
extern const struct cmd_entry *cmd_table[];
extern const struct cmd_entry cmd_attach_session_entry;