Extend jobs to support writing and use that for copy-pipe instead of popen,

from Chris Johnsen.
This commit is contained in:
Nicholas Marriott
2013-03-21 14:24:33 +00:00
parent 69d97f6d4b
commit 6ddb06d372
6 changed files with 43 additions and 26 deletions

7
tmux.h
View File

@ -776,9 +776,6 @@ struct job {
int fd;
struct bufferevent *event;
struct bufferevent *out;
int outdone;
void (*callbackfn)(struct job *);
void (*freefn)(void *);
void *data;
@ -1610,8 +1607,8 @@ int options_table_find(const char *, const struct options_table_entry **,
/* job.c */
extern struct joblist all_jobs;
struct job *job_run(
const char *, void (*)(struct job *), void (*)(void *), void *);
struct job *job_run(const char *, struct session *,
void (*)(struct job *), void (*)(void *), void *);
void job_free(struct job *);
void job_died(struct job *, int);