Commit d1f34ef4 authored by Mark Andrews's avatar Mark Andrews

4702. [func] Update function declarations to use

                        dns_masterstyle_flags_t for style flags. [RT #45924]
parent 40780aa3
4702. [func] Update function declarations to use
dns_masterstyle_flags_t for style flags. [RT #45924]
4701. [cleanup] Refactored lib/dns/tsig.c to reduce code
duplication and simplify the disabling of MD5.
[RT #45490]
......
......@@ -406,18 +406,20 @@ dns_masterstyle_flags_t
dns_master_styleflags(const dns_master_style_t *style);
isc_result_t
dns_master_stylecreate(dns_master_style_t **style, unsigned int flags,
dns_master_stylecreate(dns_master_style_t **style,
dns_masterstyle_flags_t flags,
unsigned int ttl_column, unsigned int class_column,
unsigned int type_column, unsigned int rdata_column,
unsigned int line_length, unsigned int tab_width,
isc_mem_t *mctx);
isc_result_t
dns_master_stylecreate2(dns_master_style_t **style, unsigned int flags,
unsigned int ttl_column, unsigned int class_column,
unsigned int type_column, unsigned int rdata_column,
unsigned int line_length, unsigned int tab_width,
unsigned int split_width, isc_mem_t *mctx);
dns_master_stylecreate2(dns_master_style_t **style,
dns_masterstyle_flags_t flags,
unsigned int ttl_column, unsigned int class_column,
unsigned int type_column, unsigned int rdata_column,
unsigned int line_length, unsigned int tab_width,
unsigned int split_width, isc_mem_t *mctx);
void
dns_master_styledestroy(dns_master_style_t **style, isc_mem_t *mctx);
......
......@@ -435,7 +435,7 @@ dns_rdata_totext(dns_rdata_t *rdata, const dns_name_t *origin,
isc_result_t
dns_rdata_tofmttext(dns_rdata_t *rdata, const dns_name_t *origin,
unsigned int flags, unsigned int width,
dns_masterstyle_flags_t flags, unsigned int width,
unsigned int split_width, const char *linebreak,
isc_buffer_t *target);
/*%<
......
......@@ -2090,7 +2090,8 @@ dns_master_styleflags(const dns_master_style_t *style) {
}
isc_result_t
dns_master_stylecreate(dns_master_style_t **stylep, unsigned int flags,
dns_master_stylecreate(dns_master_style_t **stylep,
dns_masterstyle_flags_t flags,
unsigned int ttl_column, unsigned int class_column,
unsigned int type_column, unsigned int rdata_column,
unsigned int line_length, unsigned int tab_width,
......@@ -2103,7 +2104,8 @@ dns_master_stylecreate(dns_master_style_t **stylep, unsigned int flags,
}
isc_result_t
dns_master_stylecreate2(dns_master_style_t **stylep, unsigned int flags,
dns_master_stylecreate2(dns_master_style_t **stylep,
dns_masterstyle_flags_t flags,
unsigned int ttl_column, unsigned int class_column,
unsigned int type_column, unsigned int rdata_column,
unsigned int line_length, unsigned int tab_width,
......
......@@ -116,7 +116,7 @@
*/
typedef struct dns_rdata_textctx {
const dns_name_t *origin; /*%< Current origin, or NULL. */
unsigned int flags; /*%< DNS_STYLEFLAG_* */
dns_masterstyle_flags_t flags; /*%< DNS_STYLEFLAG_* */
unsigned int width; /*%< Width of rdata column. */
const char *linebreak; /*%< Line break string. */
} dns_rdata_textctx_t;
......@@ -1142,7 +1142,7 @@ dns_rdata_totext(dns_rdata_t *rdata, const dns_name_t *origin,
isc_result_t
dns_rdata_tofmttext(dns_rdata_t *rdata, const dns_name_t *origin,
unsigned int flags, unsigned int width,
dns_masterstyle_flags_t flags, unsigned int width,
unsigned int split_width, const char *linebreak,
isc_buffer_t *target)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment