2 * @file initiate_ike_sa_job.h
4 * @brief Job of type INITIATE_IKE_SA
9 * Copyright (C) 2005 Jan Hutter, 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 INITIATE_IKE_SA_JOB_H_
24 #define INITIATE_IKE_SA_JOB_H_
27 #include <queues/jobs/job.h>
29 typedef struct initiate_ike_sa_job_t initiate_ike_sa_job_t
;
32 * Object representing an INITIATE_IKE_SA Job
35 struct initiate_ike_sa_job_t
{
37 * implements job_t interface
42 * @brief Returns the currently set configuration name for this job
44 * @warning Returned name is not copied.
46 * @param this calling initiate_ike_sa_job_t object
47 * @return name of the configuration
49 char * (*get_configuration_name
) (initiate_ike_sa_job_t
*this);
52 * @brief Destroys an initiate_ike_sa_job_t object.
54 * @param this initiate_ike_sa_job_t object to destroy
58 status_t (*destroy
) (initiate_ike_sa_job_t
*this);
62 * Creates a job of type INITIATE_IKE_SA
64 * @param configuration_name name of the configuration to initiate IKE_SA with
66 * - initiate_ike_sa_job_t if successfully
67 * - NULL if out of ressources or no configuration_name given
69 initiate_ike_sa_job_t
*initiate_ike_sa_job_create(char *configuration_name
);
71 #endif /*INITIATE_IKE_SA_JOB_H_*/