Add master_style_parsable

This commit is contained in:
Michael Sawyer 2001-01-04 22:19:18 +00:00
parent 3e6753a753
commit c67496c943
2 changed files with 16 additions and 3 deletions

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: masterdump.h,v 1.13 2000/08/03 19:50:11 bwelling Exp $ */
/* $Id: masterdump.h,v 1.14 2001/01/04 22:19:18 mws Exp $ */
#ifndef DNS_MASTERDUMP_H
#define DNS_MASTERDUMP_H 1
@ -54,7 +54,7 @@ ISC_LANG_BEGINDECLS
*/
extern const dns_master_style_t dns_master_style_default;
extern const dns_master_style_t dns_master_style_explicitttl;
extern const dns_master_style_t dns_master_style_parsable;
/***
*** Functions

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: masterdump.c,v 1.38 2000/12/11 19:24:12 bwelling Exp $ */
/* $Id: masterdump.c,v 1.39 2001/01/04 22:19:16 mws Exp $ */
#include <config.h>
@ -158,6 +158,19 @@ dns_master_style_explicitttl = {
24, 32, 32, 40, 80, 8
};
/*
* A master style that prints name, ttl, class, type, and value on every line.
* Similar to explicitttl above, but more verbose. Intended for generating
* master files which can be easily parsed by perl scripts and similar
* applications.
*/
const dns_master_style_t
dns_master_style_parsable = {
0,
24, 32, 32, 40, 80, 8
};
/*
* A style suitable for dns_rdataset_totext().
*/