summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-04 21:04:44 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-04 21:04:44 +0000
commit69b2d345034deaad1ed3e6a7107713027c4989c3 (patch)
tree33ea0416fb67067f8a46f96f2b4de8ab5f7b5bcf /usr.bin/tmux/tmux.h
parentc4951f362efa741b6aaf42f94c0cfb7073db3d9f (diff)
Switch jobs over to use a bufferevent.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 313e960f5db..e7cefe869e9 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.159 2009/11/04 20:50:11 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.160 2009/11/04 21:04:43 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -661,16 +661,14 @@ struct job {
struct client *client;
int fd;
- struct event event;
- struct buffer *out;
+ struct bufferevent *event;
void (*callbackfn)(struct job *);
void (*freefn)(void *);
void *data;
int flags;
-#define JOB_DONE 0x1
-#define JOB_PERSIST 0x2 /* don't free after callback */
+#define JOB_PERSIST 0x1 /* don't free after callback */
RB_ENTRY(job) entry;
SLIST_ENTRY(job) lentry;
@@ -1306,6 +1304,7 @@ struct job *job_add(struct jobs *, int, struct client *,
void job_remove(struct jobs *, struct job *);
void job_free(struct job *);
int job_run(struct job *);
+void job_died(struct job *, int);
void job_kill(struct job *);
/* environ.c */
@@ -1589,11 +1588,6 @@ void server_client_prepare(void);
void server_client_callback(int, short, void *);
void server_client_loop(void);
-/* server-job.c */
-void server_job_prepare(void);
-void server_job_callback(int, short, void *);
-void server_job_loop(void);
-
/* server-window.c */
void server_window_prepare(void);
void server_window_callback(int, short, void *);