=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.h,v retrieving revision 1.152 retrieving revision 1.153 diff -u -r1.152 -r1.153 --- src/usr.bin/tmux/tmux.h 2009/10/28 22:53:14 1.152 +++ src/usr.bin/tmux/tmux.h 2009/11/01 23:20:37 1.153 @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.152 2009/10/28 22:53:14 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.153 2009/11/01 23:20:37 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -669,6 +669,7 @@ int flags; #define JOB_DONE 0x1 +#define JOB_PERSIST 0x2 /* don't free after callback */ RB_ENTRY(job) entry; SLIST_ENTRY(job) lentry; @@ -1301,8 +1302,9 @@ void job_tree_init(struct jobs *); void job_tree_free(struct jobs *); struct job *job_get(struct jobs *, const char *); -struct job *job_add(struct jobs *, struct client *, +struct job *job_add(struct jobs *, int, struct client *, const char *, void (*)(struct job *), void (*)(void *), void *); +void job_remove(struct jobs *, struct job *); void job_free(struct job *); int job_run(struct job *); void job_kill(struct job *);