]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/charon/processing/jobs/delete_ike_sa_job.h
restructured file layout
[thirdparty/strongswan.git] / src / charon / processing / jobs / delete_ike_sa_job.h
CommitLineData
9264ec57 1/**
a655f5c0 2 * @file delete_ike_sa_job.h
9264ec57 3 *
a655f5c0 4 * @brief Interface of delete_ike_sa_job_t.
9264ec57
JH
5 *
6 */
7
8/*
c71d53ba
MW
9 * Copyright (C) 2005-2006 Martin Willi
10 * Copyright (C) 2005 Jan Hutter
9264ec57
JH
11 * Hochschule fuer Technik Rapperswil
12 *
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the
15 * Free Software Foundation; either version 2 of the License, or (at your
16 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
17 *
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * for more details.
22 */
23
a655f5c0
MW
24#ifndef DELETE_IKE_SA_JOB_H_
25#define DELETE_IKE_SA_JOB_H_
9264ec57 26
382b4817
MW
27typedef struct delete_ike_sa_job_t delete_ike_sa_job_t;
28
db7ef624 29#include <library.h>
96f79ff1 30#include <sa/ike_sa_id.h>
e0fe7651 31#include <processing/jobs/job.h>
9264ec57
JH
32
33
34/**
a655f5c0 35 * @brief Class representing an DELETE_IKE_SA Job.
382b4817 36 *
a655f5c0
MW
37 * This job is responsible for deleting established or half open IKE_SAs.
38 * A half open IKE_SA is every IKE_SA which hasn't reache the SA_ESTABLISHED
a6cbf648 39 * state.
382b4817 40 *
e314700c 41 * @b Constructors:
a655f5c0 42 * - delete_ike_sa_job_create()
382b4817 43 *
df3c59d0 44 * @ingroup jobs
9264ec57 45 */
a655f5c0 46struct delete_ike_sa_job_t {
3dd3c5f3 47
9264ec57 48 /**
e314700c 49 * The job_t interface.
9264ec57
JH
50 */
51 job_t job_interface;
9264ec57
JH
52};
53
54/**
a655f5c0 55 * @brief Creates a job of type DELETE_IKE_SA.
9264ec57 56 *
a655f5c0
MW
57 * @param ike_sa_id id of the IKE_SA to delete
58 * @param delete_if_established should the IKE_SA be deleted if it is established?
59 * @return created delete_ike_sa_job_t object
df3c59d0
MW
60 *
61 * @ingroup jobs
9264ec57 62 */
a655f5c0
MW
63delete_ike_sa_job_t *delete_ike_sa_job_create(ike_sa_id_t *ike_sa_id,
64 bool delete_if_established);
9264ec57 65
a655f5c0 66#endif /* DELETE_IKE_SA_JOB_H_ */