[BACK]Return to private.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / mpl / bind / dist / lib / dns / include / dns

Annotation of src/external/mpl/bind/dist/lib/dns/include/dns/private.h, Revision 1.1

1.1     ! christos    1: /*     $NetBSD$        */
        !             2:
        !             3: /*
        !             4:  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
        !             5:  *
        !             6:  * This Source Code Form is subject to the terms of the Mozilla Public
        !             7:  * License, v. 2.0. If a copy of the MPL was not distributed with this
        !             8:  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
        !             9:  *
        !            10:  * See the COPYRIGHT file distributed with this work for additional
        !            11:  * information regarding copyright ownership.
        !            12:  */
        !            13:
        !            14:
        !            15: #include <isc/lang.h>
        !            16: #include <isc/types.h>
        !            17:
        !            18: #include <dns/types.h>
        !            19: #include <dns/db.h>
        !            20:
        !            21: #ifndef DNS_PRIVATE_H
        !            22: #define DNS_PRIVATE_H
        !            23:
        !            24: ISC_LANG_BEGINDECLS
        !            25:
        !            26: isc_result_t
        !            27: dns_private_chains(dns_db_t *db, dns_dbversion_t *ver,
        !            28:                   dns_rdatatype_t privatetype,
        !            29:                   isc_boolean_t *build_nsec, isc_boolean_t *build_nsec3);
        !            30: /*%<
        !            31:  * Examine the NSEC, NSEC3PARAM and privatetype RRsets at the apex of the
        !            32:  * database to determine which of NSEC or NSEC3 chains we are currently
        !            33:  * maintaining.  In normal operations only one of NSEC or NSEC3 is being
        !            34:  * maintained but when we are transitiong between NSEC and NSEC3 we need
        !            35:  * to update both sets of chains.  If 'privatetype' is zero then the
        !            36:  * privatetype RRset will not be examined.
        !            37:  *
        !            38:  * Requires:
        !            39:  * \li 'db' is valid.
        !            40:  * \li 'version' is valid or NULL.
        !            41:  * \li 'build_nsec' is a pointer to a isc_boolean_t or NULL.
        !            42:  * \li 'build_nsec3' is a pointer to a isc_boolean_t or NULL.
        !            43:  *
        !            44:  * Returns:
        !            45:  * \li         ISC_R_SUCCESS, 'build_nsec' and 'build_nsec3' will be valid.
        !            46:  * \li other on error
        !            47:  */
        !            48:
        !            49: isc_result_t
        !            50: dns_private_totext(dns_rdata_t *privaterdata, isc_buffer_t *buffer);
        !            51: /*%<
        !            52:  * Convert a private-type RR 'privaterdata' to human-readable form,
        !            53:  * and place the result in 'buffer'.  The text should indicate
        !            54:  * which action the private-type record specifies and whether the
        !            55:  * action has been completed.
        !            56:  *
        !            57:  * Requires:
        !            58:  * \li 'privaterdata' is a valid rdata containing at least five bytes
        !            59:  * \li 'buffer' is a valid buffer
        !            60:  *
        !            61:  * Returns:
        !            62:  * \li         ISC_R_SUCCESS
        !            63:  * \li other on error
        !            64:  */
        !            65:
        !            66: ISC_LANG_ENDDECLS
        !            67:
        !            68: #endif

CVSweb <webmaster@jp.NetBSD.org>