summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-10 18:42:15 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-10 18:42:15 +0000
commit14f792a4ac90dce6c3fb9105666c40d3b344cf9a (patch)
tree4e21ee45ca7ac1894747ea755aa930137afbd1f0 /usr.bin/tmux/tmux.h
parent0da4ef9b26a9d6d78e660ef3a8767502bb15793a (diff)
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 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index acae732b0e6..72cfed5dfb2 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.127 2009/10/10 17:19:38 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.128 2009/10/10 18:42:14 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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 *);