~vorlon/ubuntu/raring/upstart/lp.1199778

« back to all changes in this revision

Viewing changes to init/job.h

  • Committer: Scott James Remnant
  • Date: 2006-08-16 11:18:50 UTC
  • Revision ID: scott@netsplit.com-20060816111850-6a3d32bf824a163d
* init/job.h (Job): Add depends list field
(JobName): New structure to hold the name of a job.
* init/job.c (job_new): Initialise the depends list.
* init/tests/test_job.c (test_new): Make sure the depends list is
initialised properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
 * @state: actual state of the job,
74
74
 * @start_events: list of events that can start this job,
75
75
 * @stop_events; list of events that can stop this job.
 
76
 * @depends: list of dependency jobs,
76
77
 * @process_state: what we're waiting for from the process,
77
78
 * @pid: current process id,
78
79
 * @kill_timeout: time to wait between sending TERM and KILL signals,
119
120
 
120
121
        NihList        start_events;
121
122
        NihList        stop_events;
 
123
        NihList        depends;
122
124
 
123
125
        ProcessState   process_state;
124
126
        pid_t          pid;
154
156
        char          *chdir;
155
157
} Job;
156
158
 
 
159
/**
 
160
 * JobName:
 
161
 * @entry: list header,
 
162
 * @name: name of job.
 
163
 *
 
164
 * This structure is used to form lists of job names, for example in the
 
165
 * depends list of an ordinary Job.
 
166
 **/
 
167
typedef struct job_name {
 
168
        NihList  entry;
 
169
        char    *name;
 
170
} JobName;
 
171
 
157
172
 
158
173
NIH_BEGIN_EXTERN
159
174