android: Add a custom kernel-net implementation to replace kernel-netlink
[strongswan.git] / src / frontends / android / jni / libandroidbridge / kernel / android_ipsec.h
1 /*
2 * Copyright (C) 2012 Giuliano Grassi
3 * Copyright (C) 2012 Ralf Sager
4 * Hochschule fuer Technik Rapperswil
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17 /**
18 * @defgroup kernel_android_ipsec kernel_android_ipsec
19 * @{ @ingroup android_kernel
20 */
21
22 #ifndef KERNEL_ANDROID_IPSEC_H_
23 #define KERNEL_ANDROID_IPSEC_H_
24
25 #include <library.h>
26 #include <kernel/kernel_ipsec.h>
27
28 typedef struct kernel_android_ipsec_t kernel_android_ipsec_t;
29
30 /**
31 * Implementation of the ipsec interface using libipsec on Android
32 */
33 struct kernel_android_ipsec_t {
34
35 /**
36 * Implements kernel_ipsec_t interface
37 */
38 kernel_ipsec_t interface;
39 };
40
41 /**
42 * Create a android ipsec interface instance.
43 *
44 * @return kernel_android_ipsec_t instance
45 */
46 kernel_android_ipsec_t *kernel_android_ipsec_create();
47
48 #endif /** KERNEL_ANDROID_IPSEC_H_ @}*/