4 * @brief Interface of acquire_job_t.
9 * Copyright (C) 2006 Martin Willi
10 * Hochschule fuer Technik Rapperswil
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23 #ifndef ACQUIRE_JOB_H_
24 #define ACQUIRE_JOB_H_
26 typedef struct acquire_job_t acquire_job_t
;
29 #include <queues/jobs/job.h>
32 * @brief Class representing an ACQUIRE Job.
34 * This job initiates a CHILD SA on kernel request.
37 * - acquire_job_create()
41 struct acquire_job_t
{
43 * The job_t interface.
49 * @brief Creates a job of type ACQUIRE.
51 * We use the reqid to find the routed CHILD_SA.
53 * @param reqid reqid of the CHILD_SA to acquire
54 * @return acquire_job_t object
58 acquire_job_t
*acquire_job_create(u_int32_t reqid
);
60 #endif /* REKEY_CHILD_SA_JOB_H_ */