diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-11-02 21:38:27 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-11-02 21:38:27 +0000 |
commit | 053e40572c32d021ad8bd2922c97c5e6dcbe2c81 (patch) | |
tree | 90363ff5fecbb52e5f6ee2af5a47af93765c974d /tmux.h | |
parent | 47f69075a0d9abf031585eb86bea1646a3bf32eb (diff) | |
download | rtmux-053e40572c32d021ad8bd2922c97c5e6dcbe2c81.tar.gz rtmux-053e40572c32d021ad8bd2922c97c5e6dcbe2c81.tar.bz2 rtmux-053e40572c32d021ad8bd2922c97c5e6dcbe2c81.zip |
Sync OpenBSD patchset 475:
Add a flag for jobs that shouldn't be freed after they've died and use it for
status jobs, then only kill those jobs when status-left, status-right or
set-titles-string is changed.
Fixes problems with changing options from inside #().
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.490 2009-11-02 21:32:52 tcunha Exp $ */ +/* $Id: tmux.h,v 1.491 2009-11-02 21:38:27 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -667,6 +667,7 @@ struct job { int flags; #define JOB_DONE 0x1 +#define JOB_PERSIST 0x2 /* don't free after callback */ RB_ENTRY(job) entry; SLIST_ENTRY(job) lentry; @@ -1299,8 +1300,9 @@ RB_PROTOTYPE(jobs, job, entry, job_cmp); 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 *); |