2 * @file initiate_ike_sa_job.h
4 * @brief Interface of initiate_ike_sa_job_t.
8 * Copyright (C) 2005 Jan Hutter, Martin Willi
9 * Hochschule fuer Technik Rapperswil
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at your
14 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 #ifndef INITIATE_IKE_SA_JOB_H_
23 #define INITIATE_IKE_SA_JOB_H_
26 #include <queues/jobs/job.h>
28 typedef struct initiate_ike_sa_job_t initiate_ike_sa_job_t
;
31 * 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
56 void (*destroy
) (initiate_ike_sa_job_t
*this);
60 * @brief Creates a job of type INITIATE_IKE_SA.
62 * @param configuration_name name of the configuration to initiate IKE_SA with
63 * @return initiate_ike_sa_job_t object
67 initiate_ike_sa_job_t
*initiate_ike_sa_job_create(char *configuration_name
);
69 #endif /*INITIATE_IKE_SA_JOB_H_*/