Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/bind9/dns
File: callbacks.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_CALLBACKS_H
[12] Fix | Delete
#define DNS_CALLBACKS_H 1
[13] Fix | Delete
[14] Fix | Delete
/*! \file dns/callbacks.h */
[15] Fix | Delete
[16] Fix | Delete
/***
[17] Fix | Delete
*** Imports
[18] Fix | Delete
***/
[19] Fix | Delete
[20] Fix | Delete
#include <isc/lang.h>
[21] Fix | Delete
#include <isc/magic.h>
[22] Fix | Delete
[23] Fix | Delete
#include <dns/types.h>
[24] Fix | Delete
[25] Fix | Delete
ISC_LANG_BEGINDECLS
[26] Fix | Delete
[27] Fix | Delete
/***
[28] Fix | Delete
*** Types
[29] Fix | Delete
***/
[30] Fix | Delete
[31] Fix | Delete
#define DNS_CALLBACK_MAGIC ISC_MAGIC('C','L','L','B')
[32] Fix | Delete
#define DNS_CALLBACK_VALID(cb) ISC_MAGIC_VALID(cb, DNS_CALLBACK_MAGIC)
[33] Fix | Delete
[34] Fix | Delete
struct dns_rdatacallbacks {
[35] Fix | Delete
unsigned int magic;
[36] Fix | Delete
[37] Fix | Delete
/*%
[38] Fix | Delete
* dns_load_master calls this when it has rdatasets to commit.
[39] Fix | Delete
*/
[40] Fix | Delete
dns_addrdatasetfunc_t add;
[41] Fix | Delete
[42] Fix | Delete
/*%
[43] Fix | Delete
* This is called when reading in a database image from a 'map'
[44] Fix | Delete
* format zone file.
[45] Fix | Delete
*/
[46] Fix | Delete
dns_deserializefunc_t deserialize;
[47] Fix | Delete
[48] Fix | Delete
/*%
[49] Fix | Delete
* dns_master_load*() call this when loading a raw zonefile,
[50] Fix | Delete
* to pass back information obtained from the file header
[51] Fix | Delete
*/
[52] Fix | Delete
dns_rawdatafunc_t rawdata;
[53] Fix | Delete
dns_zone_t *zone;
[54] Fix | Delete
[55] Fix | Delete
/*%
[56] Fix | Delete
* dns_load_master / dns_rdata_fromtext call this to issue a error.
[57] Fix | Delete
*/
[58] Fix | Delete
void (*error)(struct dns_rdatacallbacks *, const char *, ...);
[59] Fix | Delete
/*%
[60] Fix | Delete
* dns_load_master / dns_rdata_fromtext call this to issue a warning.
[61] Fix | Delete
*/
[62] Fix | Delete
void (*warn)(struct dns_rdatacallbacks *, const char *, ...);
[63] Fix | Delete
/*%
[64] Fix | Delete
* Private data handles for use by the above callback functions.
[65] Fix | Delete
*/
[66] Fix | Delete
void *add_private;
[67] Fix | Delete
void *deserialize_private;
[68] Fix | Delete
void *error_private;
[69] Fix | Delete
void *warn_private;
[70] Fix | Delete
};
[71] Fix | Delete
[72] Fix | Delete
/***
[73] Fix | Delete
*** Initialization
[74] Fix | Delete
***/
[75] Fix | Delete
[76] Fix | Delete
void
[77] Fix | Delete
dns_rdatacallbacks_init(dns_rdatacallbacks_t *callbacks);
[78] Fix | Delete
/*%<
[79] Fix | Delete
* Initialize 'callbacks'.
[80] Fix | Delete
*
[81] Fix | Delete
* \li 'magic' is set to DNS_CALLBACK_MAGIC
[82] Fix | Delete
*
[83] Fix | Delete
* \li 'error' and 'warn' are set to default callbacks that print the
[84] Fix | Delete
* error message through the DNS library log context.
[85] Fix | Delete
*
[86] Fix | Delete
*\li All other elements are initialized to NULL.
[87] Fix | Delete
*
[88] Fix | Delete
* Requires:
[89] Fix | Delete
* \li 'callbacks' is a valid dns_rdatacallbacks_t,
[90] Fix | Delete
*/
[91] Fix | Delete
[92] Fix | Delete
void
[93] Fix | Delete
dns_rdatacallbacks_init_stdio(dns_rdatacallbacks_t *callbacks);
[94] Fix | Delete
/*%<
[95] Fix | Delete
* Like dns_rdatacallbacks_init, but logs to stdio.
[96] Fix | Delete
*/
[97] Fix | Delete
[98] Fix | Delete
ISC_LANG_ENDDECLS
[99] Fix | Delete
[100] Fix | Delete
#endif /* DNS_CALLBACKS_H */
[101] Fix | Delete
[102] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function