4 * @brief Interface job_t.
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
27 #include <definitions.h>
30 typedef enum job_type_t job_type_t
;
33 * @brief Definition of the various job types.
39 * Process an incoming IKEv2-Message.
41 * Job is implemented in class type incoming_packet_job_t
46 * Retransmit an IKEv2-Message.
51 * Establish an ike sa as initiator.
53 * Job is implemented in class type initiate_ike_sa_job_t
58 * Delete an ike sa which is still not established.
60 * Job is implemented in class type delete_half_open_ike_sa_job_t
62 DELETE_HALF_OPEN_IKE_SA
,
65 * Delete an ike sa which is established.
67 * Job is implemented in class type delete_established_ike_sa_job_t
69 DELETE_ESTABLISHED_IKE_SA
72 /* more job types have to be inserted here */
76 * string mappings for job_type_t
78 extern mapping_t job_type_m
[];
81 typedef struct job_t job_t
;
84 * @brief Job-Interface as it is stored in the job queue.
86 * A job consists of a job-type and one or more assigned values.
93 * @brief get type of job.
95 * @param this calling object
96 * @return type of this job
98 job_type_t (*get_type
) (job_t
*this);
101 * @brief Destroys a job_t object and all assigned data!
103 * @param job_t calling object
105 void (*destroy_all
) (job_t
*job
);
108 * @brief Destroys a job_t object
110 * @param job_t calling object
112 void (*destroy
) (job_t
*job
);