Removed strayed code fragment
[strongswan.git] / src / charon / processing / jobs / update_sa_job.h
1 /*
2 * Copyright (C) 2008 Martin Willi
3 * Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 /**
17 * @defgroup update_sa_job update_sa_job
18 * @{ @ingroup jobs
19 */
20
21 #ifndef UPDATE_SA_JOB_H_
22 #define UPDATE_SA_JOB_H_
23
24 typedef struct update_sa_job_t update_sa_job_t;
25
26 #include <library.h>
27 #include <utils/host.h>
28 #include <processing/jobs/job.h>
29
30 /**
31 * Update the addresses of an IKE and its CHILD_SAs.
32 */
33 struct update_sa_job_t {
34
35 /**
36 * implements job_t interface
37 */
38 job_t job_interface;
39 };
40
41 /**
42 * Creates a job to update IKE and CHILD_SA addresses.
43 *
44 * @param reqid reqid of the CHILD_SA
45 * @param new new address and port
46 * @return update_sa_job_t object
47 */
48 update_sa_job_t *update_sa_job_create(u_int32_t reqid, host_t *new);
49
50 #endif /** UPDATE_SA_JOB_H_ @}*/