Add menu options to convert a popup into a pane.

This commit is contained in:
nicm
2021-08-13 19:27:25 +00:00
parent 92615b534a
commit 2588c3e52e
3 changed files with 79 additions and 3 deletions

21
job.c
View File

@ -201,6 +201,27 @@ fail:
return (NULL);
}
/* Take job's file descriptor and free the job. */
int
job_transfer(struct job *job)
{
int fd = job->fd;
log_debug("transfer job %p: %s", job, job->cmd);
LIST_REMOVE(job, entry);
free(job->cmd);
if (job->freecb != NULL && job->data != NULL)
job->freecb(job->data);
if (job->event != NULL)
bufferevent_free(job->event);
free(job);
return (fd);
}
/* Kill and free an individual job. */
void
job_free(struct job *job)