"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/lib/dns/rdata/rdatastructpre.h" (7 Sep 2020, 916 Bytes) of package /linux/misc/dns/bind9/9.11.23/bind-9.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "rdatastructpre.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 
   13 #ifndef DNS_RDATASTRUCT_H
   14 #define DNS_RDATASTRUCT_H 1
   15 
   16 #include <isc/lang.h>
   17 #include <isc/sockaddr.h>
   18 
   19 #include <dns/name.h>
   20 #include <dns/types.h>
   21 
   22 ISC_LANG_BEGINDECLS
   23 
   24 typedef struct dns_rdatacommon {
   25     dns_rdataclass_t            rdclass;
   26     dns_rdatatype_t             rdtype;
   27     ISC_LINK(struct dns_rdatacommon)    link;
   28 } dns_rdatacommon_t;
   29 
   30 #define DNS_RDATACOMMON_INIT(_data, _rdtype, _rdclass) \
   31     do { \
   32         (_data)->common.rdtype = (_rdtype); \
   33         (_data)->common.rdclass = (_rdclass); \
   34         ISC_LINK_INIT(&(_data)->common, link); \
   35     } while (0)