2 * Copyright (C) 2012 Reto Guadagnini
4 * Copyright (C) secunet Security Networks AG
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>.
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
18 * @defgroup unbound_response unbound_response
19 * @{ @ingroup unbound_p
22 #ifndef UNBOUND_RESPONSE_H_
23 #define UNBOUND_RESPONSE_H_
25 #include <resolver/resolver_response.h>
28 typedef struct unbound_response_t unbound_response_t
;
31 * Implementation of the resolver_response interface using libunbound.
34 struct unbound_response_t
{
37 * Implements the resolver_response interface
39 resolver_response_t interface
;
43 * Create an unbound_response instance from a response of the unbound library.
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
49 unbound_response_t
*unbound_response_create_frm_libub_response(
50 struct ub_result
*response
);
52 #endif /** UNBOUND_RESPONSE_H_ @}*/