Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bind9/dns
File: rdataclass.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
#ifndef DNS_RDATACLASS_H
[12] Fix | Delete
#define DNS_RDATACLASS_H 1
[13] Fix | Delete
[14] Fix | Delete
/*! \file dns/rdataclass.h */
[15] Fix | Delete
[16] Fix | Delete
#include <isc/lang.h>
[17] Fix | Delete
[18] Fix | Delete
#include <dns/types.h>
[19] Fix | Delete
[20] Fix | Delete
ISC_LANG_BEGINDECLS
[21] Fix | Delete
[22] Fix | Delete
isc_result_t
[23] Fix | Delete
dns_rdataclass_fromtext(dns_rdataclass_t *classp, isc_textregion_t *source);
[24] Fix | Delete
/*%<
[25] Fix | Delete
* Convert the text 'source' refers to into a DNS class.
[26] Fix | Delete
*
[27] Fix | Delete
* Requires:
[28] Fix | Delete
*\li 'classp' is a valid pointer.
[29] Fix | Delete
*
[30] Fix | Delete
*\li 'source' is a valid text region.
[31] Fix | Delete
*
[32] Fix | Delete
* Returns:
[33] Fix | Delete
*\li #ISC_R_SUCCESS on success
[34] Fix | Delete
*\li #DNS_R_UNKNOWN class is unknown
[35] Fix | Delete
*/
[36] Fix | Delete
[37] Fix | Delete
isc_result_t
[38] Fix | Delete
dns_rdataclass_totext(dns_rdataclass_t rdclass, isc_buffer_t *target);
[39] Fix | Delete
/*%<
[40] Fix | Delete
* Put a textual representation of class 'rdclass' into 'target'.
[41] Fix | Delete
*
[42] Fix | Delete
* Requires:
[43] Fix | Delete
*\li 'rdclass' is a valid class.
[44] Fix | Delete
*
[45] Fix | Delete
*\li 'target' is a valid text buffer.
[46] Fix | Delete
*
[47] Fix | Delete
* Ensures,
[48] Fix | Delete
* if the result is success:
[49] Fix | Delete
*\li The used space in 'target' is updated.
[50] Fix | Delete
*
[51] Fix | Delete
* Returns:
[52] Fix | Delete
*\li #ISC_R_SUCCESS on success
[53] Fix | Delete
*\li #ISC_R_NOSPACE target buffer is too small
[54] Fix | Delete
*/
[55] Fix | Delete
[56] Fix | Delete
isc_result_t
[57] Fix | Delete
dns_rdataclass_tounknowntext(dns_rdataclass_t rdclass, isc_buffer_t *target);
[58] Fix | Delete
/*%<
[59] Fix | Delete
* Put textual RFC3597 CLASSXXXX representation of class 'rdclass' into
[60] Fix | Delete
* 'target'.
[61] Fix | Delete
*
[62] Fix | Delete
* Requires:
[63] Fix | Delete
*\li 'rdclass' is a valid class.
[64] Fix | Delete
*
[65] Fix | Delete
*\li 'target' is a valid text buffer.
[66] Fix | Delete
*
[67] Fix | Delete
* Ensures,
[68] Fix | Delete
* if the result is success:
[69] Fix | Delete
*\li The used space in 'target' is updated.
[70] Fix | Delete
*
[71] Fix | Delete
* Returns:
[72] Fix | Delete
*\li #ISC_R_SUCCESS on success
[73] Fix | Delete
*\li #ISC_R_NOSPACE target buffer is too small
[74] Fix | Delete
*/
[75] Fix | Delete
[76] Fix | Delete
void
[77] Fix | Delete
dns_rdataclass_format(dns_rdataclass_t rdclass,
[78] Fix | Delete
char *array, unsigned int size);
[79] Fix | Delete
/*%<
[80] Fix | Delete
* Format a human-readable representation of the class 'rdclass'
[81] Fix | Delete
* into the character array 'array', which is of size 'size'.
[82] Fix | Delete
* The resulting string is guaranteed to be null-terminated.
[83] Fix | Delete
*/
[84] Fix | Delete
[85] Fix | Delete
#define DNS_RDATACLASS_FORMATSIZE sizeof("CLASS65535")
[86] Fix | Delete
/*%<
[87] Fix | Delete
* Minimum size of array to pass to dns_rdataclass_format().
[88] Fix | Delete
*/
[89] Fix | Delete
[90] Fix | Delete
ISC_LANG_ENDDECLS
[91] Fix | Delete
[92] Fix | Delete
#endif /* DNS_RDATACLASS_H */
[93] Fix | Delete
[94] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function