mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
dns_master_questiontotext() needs a style argument after all
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: masterdump.h,v 1.20 2001/03/28 00:50:01 gson Exp $ */
|
/* $Id: masterdump.h,v 1.21 2001/03/28 00:58:15 gson Exp $ */
|
||||||
|
|
||||||
#ifndef DNS_MASTERDUMP_H
|
#ifndef DNS_MASTERDUMP_H
|
||||||
#define DNS_MASTERDUMP_H 1
|
#define DNS_MASTERDUMP_H 1
|
||||||
@@ -127,7 +127,7 @@ dns_master_dump(isc_mem_t *mctx, dns_db_t *db,
|
|||||||
isc_result_t
|
isc_result_t
|
||||||
dns_master_rdatasettotext(dns_name_t *owner_name,
|
dns_master_rdatasettotext(dns_name_t *owner_name,
|
||||||
dns_rdataset_t *rdataset,
|
dns_rdataset_t *rdataset,
|
||||||
const dns_master_style_t *style,
|
const dns_master_style_t *style,
|
||||||
isc_buffer_t *target);
|
isc_buffer_t *target);
|
||||||
/*
|
/*
|
||||||
* Convert 'rdataset' to text format, storing the result in 'target'.
|
* Convert 'rdataset' to text format, storing the result in 'target'.
|
||||||
@@ -144,6 +144,7 @@ dns_master_rdatasettotext(dns_name_t *owner_name,
|
|||||||
isc_result_t
|
isc_result_t
|
||||||
dns_master_questiontotext(dns_name_t *owner_name,
|
dns_master_questiontotext(dns_name_t *owner_name,
|
||||||
dns_rdataset_t *rdataset,
|
dns_rdataset_t *rdataset,
|
||||||
|
const dns_master_style_t *style,
|
||||||
isc_buffer_t *target);
|
isc_buffer_t *target);
|
||||||
/*
|
/*
|
||||||
* Print a text representation of 'rdataset', a pseudo-rdataset
|
* Print a text representation of 'rdataset', a pseudo-rdataset
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: masterdump.c,v 1.48 2001/03/28 00:54:40 gson Exp $ */
|
/* $Id: masterdump.c,v 1.49 2001/03/28 00:58:12 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -581,9 +581,19 @@ dns_master_rdatasettotext(dns_name_t *owner_name,
|
|||||||
isc_result_t
|
isc_result_t
|
||||||
dns_master_questiontotext(dns_name_t *owner_name,
|
dns_master_questiontotext(dns_name_t *owner_name,
|
||||||
dns_rdataset_t *rdataset,
|
dns_rdataset_t *rdataset,
|
||||||
|
const dns_master_style_t *style,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
return (question_totext(rdataset, owner_name, NULL,
|
dns_totext_ctx_t ctx;
|
||||||
|
isc_result_t result;
|
||||||
|
result = totext_ctx_init(style, &ctx);
|
||||||
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
UNEXPECTED_ERROR(__FILE__, __LINE__,
|
||||||
|
"could not set master file style");
|
||||||
|
return (ISC_R_UNEXPECTED);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (question_totext(rdataset, owner_name, &ctx,
|
||||||
ISC_FALSE, target));
|
ISC_FALSE, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: message.c,v 1.187 2001/03/28 00:50:05 gson Exp $ */
|
/* $Id: message.c,v 1.188 2001/03/28 00:58:13 gson Exp $ */
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*** Imports
|
*** Imports
|
||||||
@@ -2842,6 +2842,7 @@ dns_message_sectiontotext(dns_message_t *msg, dns_section_t section,
|
|||||||
ADD_STRING(target, ";");
|
ADD_STRING(target, ";");
|
||||||
result = dns_master_questiontotext(name,
|
result = dns_master_questiontotext(name,
|
||||||
rdataset,
|
rdataset,
|
||||||
|
&dns_master_style_debug,
|
||||||
target);
|
target);
|
||||||
} else {
|
} else {
|
||||||
result = dns_master_rdatasettotext(name,
|
result = dns_master_rdatasettotext(name,
|
||||||
|
Reference in New Issue
Block a user