result.h revision 744c1db6352c4c3f11c8538e4a2a57c8b0e0d570
/*
* Copyright (C) 1998-2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef DNS_RESULT_H
#define DNS_RESULT_H 1
#include <isc/resultclass.h>
/*
* DNS result codes are considered to be publicly derived from
* the ISC result codes, so including this file buys you the ISC_R_
* namespace too.
*/
/*
* DNS library result codes
*/
#define DNS_R_LABELTOOLONG (ISC_RESULTCLASS_DNS + 0)
/*
* Since we dropped the support of bitstring labels, deprecate the related
* result codes too.
#define DNS_R_BADBITSTRING (ISC_RESULTCLASS_DNS + 2)
#define DNS_R_BITSTRINGTOOLONG (ISC_RESULTCLASS_DNS + 3)
*/
/*
* DNS wire format rcodes.
*
* By making these their own class we can easily convert them into the
* wire-format rcode value simply by masking off the resultclass.
*/
#define DNS_R_NOERROR (ISC_RESULTCLASS_DNSRCODE + 0)
#define DNS_RESULT_ISRCODE(result) \
const char *
void
dns_result_register(void);
#endif /* DNS_RESULT_H */