Annotation of embedaddon/strongswan/src/libstrongswan/plugins/unbound/unbound_response.h, revision 1.1.1.1
1.1 misho 1: /*
2: * Copyright (C) 2012 Reto Guadagnini
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 unbound_response unbound_response
18: * @{ @ingroup unbound_p
19: */
20:
21: #ifndef UNBOUND_RESPONSE_H_
22: #define UNBOUND_RESPONSE_H_
23:
24: #include <resolver/resolver_response.h>
25: #include <unbound.h>
26:
27: typedef struct unbound_response_t unbound_response_t;
28:
29: /**
30: * Implementation of the resolver_response interface using libunbound.
31: *
32: */
33: struct unbound_response_t {
34:
35: /**
36: * Implements the resolver_response interface
37: */
38: resolver_response_t interface;
39: };
40:
41: /**
42: * Create an unbound_response instance from a response of the unbound library.
43: *
44: * @param response a response of the unbound library
45: * @return an unbound_response conforming to the resolver_response
46: * interface, or NULL on failure
47: */
48: unbound_response_t *unbound_response_create_frm_libub_response(
49: struct ub_result *response);
50:
51: #endif /** UNBOUND_RESPONSE_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>