"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/lib/dns/rdata/generic/txt_16.h" (7 Sep 2020, 1116 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 "txt_16.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 GENERIC_TXT_16_H
   14 #define GENERIC_TXT_16_H 1
   15 
   16 
   17 typedef struct dns_rdata_txt_string {
   18         uint8_t    length;
   19         unsigned char   *data;
   20 } dns_rdata_txt_string_t;
   21 
   22 typedef struct dns_rdata_txt {
   23     dns_rdatacommon_t       common;
   24     isc_mem_t               *mctx;
   25     unsigned char           *txt;
   26     uint16_t            txt_len;
   27     /* private */
   28     uint16_t            offset;
   29 } dns_rdata_txt_t;
   30 
   31 /*
   32  * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
   33  * via rdatastructpre.h and rdatastructsuf.h.
   34  */
   35 
   36 isc_result_t
   37 dns_rdata_txt_first(dns_rdata_txt_t *);
   38 
   39 isc_result_t
   40 dns_rdata_txt_next(dns_rdata_txt_t *);
   41 
   42 isc_result_t
   43 dns_rdata_txt_current(dns_rdata_txt_t *, dns_rdata_txt_string_t *);
   44 
   45 #endif /* GENERIC_TXT_16_H */