Lines Matching defs:style
91 dns_master_style_t style;
150 * A style suitable for dns_rdataset_totext().
261 totext_ctx_init(const dns_master_style_t *style, dns_totext_ctx_t *ctx) {
264 REQUIRE(style->tab_width != 0);
266 ctx->style = *style;
274 if ((ctx->style.flags & DNS_STYLEFLAG_MULTILINE) != 0) {
288 result = indent(&col, ctx->style.rdata_column,
289 ctx->style.tab_width, &buf);
322 if ((result = indent(&column, ctx->style.col, \
323 ctx->style.tab_width, target)) \
428 ! ((ctx->style.flags & DNS_STYLEFLAG_OMIT_OWNER) != 0 &&
441 if ((ctx->style.flags & DNS_STYLEFLAG_NO_TTL) == 0 &&
442 !((ctx->style.flags & DNS_STYLEFLAG_OMIT_TTL) != 0 &&
465 if ((ctx->style.flags & DNS_STYLEFLAG_TTL) == 0) {
474 if ((ctx->style.flags & DNS_STYLEFLAG_NO_CLASS) == 0 &&
475 ((ctx->style.flags & DNS_STYLEFLAG_OMIT_CLASS) == 0 ||
531 ctx->style.flags,
532 ctx->style.line_length -
533 ctx->style.rdata_column,
639 "could not set master file style");
663 const dns_master_style_t *style,
668 result = totext_ctx_init(style, &ctx);
671 "could not set master file style");
682 const dns_master_style_t *style,
687 result = totext_ctx_init(style, &ctx);
690 "could not set master file style");
719 if ((ctx->style.flags & DNS_STYLEFLAG_TTL) != 0) {
723 if ((ctx->style.flags & DNS_STYLEFLAG_COMMENT) != 0)
870 if (ctx->style.flags & DNS_STYLEFLAG_TRUST)
873 (ctx->style.flags & DNS_STYLEFLAG_NCACHE) == 0) {
881 if ((ctx->style.flags & DNS_STYLEFLAG_OMIT_OWNER) != 0)
884 if (ctx->style.flags & DNS_STYLEFLAG_RESIGN &&
1039 (ctx->style.flags & DNS_STYLEFLAG_NCACHE) == 0) {
1228 const dns_master_style_t *style, FILE *f, dns_dumpctx_t **dctxp,
1266 result = totext_ctx_init(style, &dctx->tctx);
1269 "could not set master file style");
1279 (dctx->tctx.style.flags & DNS_STYLEFLAG_REL_OWNER) != 0) {
1408 if ((dctx->tctx.style.flags & DNS_STYLEFLAG_REL_DATA) != 0)
1481 const dns_master_style_t *style,
1493 result = dumpctx_create(mctx, db, version, style, f, &dctx,
1518 const dns_master_style_t *style,
1521 return (dns_master_dumptostream2(mctx, db, version, style,
1528 const dns_master_style_t *style,
1534 result = dumpctx_create(mctx, db, version, style, f, &dctx, format);
1583 const dns_master_style_t *style, const char *filename,
1587 return (dns_master_dumpinc2(mctx, db, version, style, filename, task,
1594 const dns_master_style_t *style, const char *filename,
1612 result = dumpctx_create(mctx, db, version, style, f, &dctx, format);
1646 const dns_master_style_t *style, const char *filename)
1648 return (dns_master_dump2(mctx, db, version, style, filename,
1654 const dns_master_style_t *style, const char *filename,
1666 result = dumpctx_create(mctx, db, version, style, f, &dctx, format);
1689 const dns_master_style_t *style,
1699 result = totext_ctx_init(style, &ctx);
1702 "could not set master file style");
1732 const dns_master_style_t *style, const char *filename)
1747 style, f);
1776 dns_master_style_t *style;
1779 style = isc_mem_get(mctx, sizeof(*style));
1780 if (style == NULL)
1783 style->flags = flags;
1784 style->ttl_column = ttl_column;
1785 style->class_column = class_column;
1786 style->type_column = type_column;
1787 style->rdata_column = rdata_column;
1788 style->line_length = line_length;
1789 style->tab_width = tab_width;
1791 *stylep = style;
1797 dns_master_style_t *style;
1800 style = *stylep;
1802 isc_mem_put(mctx, style, sizeof(*style));