android: Encode connection settings as single Java string argument
[strongswan.git] / src / frontends / android / jni / libandroidbridge / backend / android_attr.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 android_attr android_attr
19 * @{ @ingroup android_backend
20 */
21
22 #ifndef ANDROID_ATTR_H_
23 #define ANDROID_ATTR_H_
24
25 #include <library.h>
26 #include <attributes/attribute_handler.h>
27
28 typedef struct android_attr_t android_attr_t;
29
30 /**
31 * Handler for DNS configuration
32 */
33 struct android_attr_t {
34
35 /**
36 * implements the attribute_handler_t interface
37 */
38 attribute_handler_t handler;
39
40 /**
41 * Destroy a android_attr_t
42 */
43 void (*destroy)(android_attr_t *this);
44 };
45
46 /**
47 * Create a android_attr_t instance.
48 */
49 android_attr_t *android_attr_create(void);
50
51 #endif /** ANDROID_ATTR_H_ @}*/
52