Annotation of embedaddon/strongswan/src/libstrongswan/plugins/unbound/unbound_rr.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_rr unbound_rr
                     18:  * @{ @ingroup unbound_p
                     19:  */
                     20: 
                     21: #ifndef UNBOUND_RR_H_
                     22: #define UNBOUND_RR_H_
                     23: 
                     24: #include <resolver/rr.h>
                     25: #include <ldns/ldns.h>
                     26: 
                     27: typedef struct unbound_rr_t unbound_rr_t;
                     28: 
                     29: /**
                     30:  * Implementation of the Resource Record interface using libunbound and libldns.
                     31:  */
                     32: struct unbound_rr_t {
                     33: 
                     34:        /**
                     35:         * Implements the Resource Record interface
                     36:         */
                     37:        rr_t interface;
                     38: };
                     39: 
                     40: /**
                     41:  * Create an unbound_rr instance from a Resource Record given by
                     42:  * a ldns_struct_rr from the ldns library.
                     43:  *
                     44:  * @return             Resource Record, NULL on error
                     45:  */
                     46: unbound_rr_t *unbound_rr_create_frm_ldns_rr(ldns_rr *rr);
                     47: 
                     48: #endif /** UNBOUND_RR_H_ @}*/

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>