implemented periodic IF-MAP RenewSession request
[strongswan.git] / src / libcharon / plugins / tnc_ifmap / tnc_ifmap_renew_session_job.h
1 /*
2 * Copyright (C) 2013 Andreas Steffen
3 * HSR 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 tnc_ifmap_renew_session_job tnc_ifmap_renew_session_job
18 * @{ @ingroup cjobs
19 */
20
21 #ifndef TNC_IFMAP_RENEW_SESSION_JOB_H_
22 #define TNC_IFMAP_RENEW_SESSION_JOB_H_
23
24 typedef struct tnc_ifmap_renew_session_job_t tnc_ifmap_renew_session_job_t;
25
26 #include "tnc_ifmap_soap.h"
27
28 #include <library.h>
29 #include <processing/jobs/job.h>
30
31 /**
32 * Job periodically sending an IF-MAP RenewSession request.
33 */
34 struct tnc_ifmap_renew_session_job_t {
35
36 /**
37 * implements job_t interface
38 */
39 job_t job_interface;
40 };
41
42 /**
43 * Creates an tnc_ifmap_renew_session job.
44 *
45 * @param ifmap TNC IF-MAP object
46 * @param reschedule reschedule time in seconds
47 */
48 tnc_ifmap_renew_session_job_t *tnc_ifmap_renew_session_job_create(
49 tnc_ifmap_soap_t *ifmap, u_int32_t reschedule);
50
51 #endif /** TNC_IFMAP_RENEW_SESSION_JOB_H_ @}*/