~emersion/mrsh

ref: ee80db4d9ac87dbb0eedc3a50ab7e5bafac6633d mrsh/include/shell/shell.h -rw-r--r-- 468 bytes View raw
ee80db4dSimon Ser Introduce job_poll 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef SHELL_SHELL_H
#define SHELL_SHELL_H

#include <mrsh/shell.h>

struct mrsh_job;

/**
 * A context holds state information and per-job information. A context is
 * guaranteed to be shared between all members of a job.
 */
struct context {
	struct mrsh_state *state;
	// When executing a pipeline, this is set to the job created for the
	// pipeline
	struct mrsh_job *job;
	// When executing an asynchronous list, this is set to true
	bool background;
};

#endif