4 * @brief Interface of initiate_job_t.
8 * Copyright (C) 2005-2007 Martin Willi
9 * Copyright (C) 2005 Jan Hutter
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 INITIATE_JOB_H_
24 #define INITIATE_JOB_H_
26 typedef struct initiate_job_t initiate_job_t
;
29 #include <processing/jobs/job.h>
30 #include <config/peer_cfg.h>
31 #include <config/child_cfg.h>
34 * @brief Class representing an INITIATE_IKE_SA Job.
36 * This job is created if an IKE_SA should be iniated.
39 * - initiate_job_create()
43 struct initiate_job_t
{
45 * implements job_t interface
51 * @brief Creates a job of type INITIATE.
53 * @param peer_cfg peer configuration to use (if not yet established)
54 * @param child_cfg config to create a CHILD from
55 * @return initiate_job_t object
59 initiate_job_t
*initiate_job_create(peer_cfg_t
*peer_cfg
, child_cfg_t
*child_cfg
);
61 #endif /*INITIATE_JOB_H_*/