]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/libstrongswan/plugins/unbound/unbound_response.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libstrongswan / plugins / unbound / unbound_response.h
1 /*
2 * Copyright (C) 2012 Reto Guadagnini
3 *
4 * Copyright (C) secunet Security Networks AG
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 unbound_response unbound_response
19 * @{ @ingroup unbound_p
20 */
21
22 #ifndef UNBOUND_RESPONSE_H_
23 #define UNBOUND_RESPONSE_H_
24
25 #include <resolver/resolver_response.h>
26 #include <unbound.h>
27
28 typedef struct unbound_response_t unbound_response_t;
29
30 /**
31 * Implementation of the resolver_response interface using libunbound.
32 *
33 */
34 struct unbound_response_t {
35
36 /**
37 * Implements the resolver_response interface
38 */
39 resolver_response_t interface;
40 };
41
42 /**
43 * Create an unbound_response instance from a response of the unbound library.
44 *
45 * @param response a response of the unbound library
46 * @return an unbound_response conforming to the resolver_response
47 * interface, or NULL on failure
48 */
49 unbound_response_t *unbound_response_create_frm_libub_response(
50 struct ub_result *response);
51
52 #endif /** UNBOUND_RESPONSE_H_ @}*/