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 #ifndef DNS_OPCODE_H 13 #define DNS_OPCODE_H 1 14 15 /*! \file dns/opcode.h */ 16 17 #include <isc/lang.h> 18 19 #include <dns/types.h> 20 21 ISC_LANG_BEGINDECLS 22 23 isc_result_t 24 dns_opcode_totext(dns_opcode_t opcode, isc_buffer_t *target); 25 /*%< 26 * Put a textual representation of error 'opcode' into 'target'. 27 * 28 * Requires: 29 *\li 'opcode' is a valid opcode. 30 * 31 *\li 'target' is a valid text buffer. 32 * 33 * Ensures: 34 *\li If the result is success: 35 * The used space in 'target' is updated. 36 * 37 * Returns: 38 *\li #ISC_R_SUCCESS on success 39 *\li #ISC_R_NOSPACE target buffer is too small 40 */ 41 42 ISC_LANG_ENDDECLS 43 44 #endif /* DNS_OPCODE_H */ 45