aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-10 18:42:14 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-10 18:42:14 +0000
commit095ecf2d9002a10e034268a0a709c5b5bb5c2ae5 (patch)
tree284e424b1b340602f19d6ea5274a17952673ee9e /tmux.h
parentb7c364a853352531dbc48758046ae7056a8885fa (diff)
downloadrtmux-095ecf2d9002a10e034268a0a709c5b5bb5c2ae5.tar.gz
rtmux-095ecf2d9002a10e034268a0a709c5b5bb5c2ae5.tar.bz2
rtmux-095ecf2d9002a10e034268a0a709c5b5bb5c2ae5.zip
Put all jobs on a global all_jobs list and use that in server.c instead of
running through all the clients.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index c31039ad..6687d84a 100644
--- a/tmux.h
+++ b/tmux.h
@@ -578,8 +578,10 @@ struct job {
void *data;
RB_ENTRY(job) entry;
+ SLIST_ENTRY(job) lentry;
};
RB_HEAD(jobs, job);
+SLIST_HEAD(joblist, job);
/* Screen selection. */
struct screen_sel {
@@ -1199,7 +1201,7 @@ struct options_entry *options_set_data(
void *options_get_data(struct options *, const char *);
/* job.c */
-extern struct jobs jobs_tree;
+extern struct joblist all_jobs;
int job_cmp(struct job *, struct job *);
RB_PROTOTYPE(jobs, job, entry, job_cmp);
void job_tree_init(struct jobs *);