Lines Matching defs:style

83 	dns_master_style_t	style;
160 * A style suitable for dns_rdataset_totext().
191 * YAML style
310 totext_ctx_init(const dns_master_style_t *style, dns_totext_ctx_t *ctx) {
313 REQUIRE(style->tab_width != 0);
315 ctx->style = *style;
323 if ((ctx->style.flags & DNS_STYLEFLAG_MULTILINE) != 0) {
337 if ((ctx->style.flags & DNS_STYLEFLAG_INDENT) != 0 ||
338 (ctx->style.flags & DNS_STYLEFLAG_YAML) != 0)
348 if ((ctx->style.flags & DNS_STYLEFLAG_COMMENTDATA) != 0) {
356 result = indent(&col, ctx->style.rdata_column,
357 ctx->style.tab_width, &buf);
390 if ((ctx->style.flags & DNS_STYLEFLAG_YAML) != 0) { \
394 } else if ((result = indent(&column, ctx->style.col, \
395 ctx->style.tab_width, target)) \
509 if ((ctx->style.flags & DNS_STYLEFLAG_INDENT) != 0 ||
510 (ctx->style.flags & DNS_STYLEFLAG_YAML) != 0)
518 if ((ctx->style.flags & DNS_STYLEFLAG_YAML) != 0) {
525 if ((ctx->style.flags & DNS_STYLEFLAG_COMMENTDATA) != 0)
532 ! ((ctx->style.flags & DNS_STYLEFLAG_OMIT_OWNER) != 0 &&
543 if ((ctx->style.flags & DNS_STYLEFLAG_NO_TTL) == 0 &&
544 !((ctx->style.flags & DNS_STYLEFLAG_OMIT_TTL) != 0 &&
553 if ((ctx->style.flags & DNS_STYLEFLAG_TTL_UNITS) != 0) {
577 if ((ctx->style.flags & DNS_STYLEFLAG_TTL) == 0) {
586 if ((ctx->style.flags & DNS_STYLEFLAG_NO_CLASS) == 0 &&
587 ((ctx->style.flags & DNS_STYLEFLAG_OMIT_CLASS) == 0 ||
593 if ((ctx->style.flags & DNS_STYLEFLAG_UNKNOWNFORMAT) != 0)
621 if ((ctx->style.flags & DNS_STYLEFLAG_KEYDATA) != 0) {
630 if ((ctx->style.flags & DNS_STYLEFLAG_UNKNOWNFORMAT) != 0)
644 if ((ctx->style.flags & DNS_STYLEFLAG_INDENT) != 0 ||
645 (ctx->style.flags & DNS_STYLEFLAG_YAML) != 0)
671 ctx->style.flags,
672 ctx->style.line_length -
673 ctx->style.rdata_column,
674 ctx->style.split_width,
742 if ((ctx->style.flags & DNS_STYLEFLAG_UNKNOWNFORMAT) != 0)
758 if ((ctx->style.flags & DNS_STYLEFLAG_UNKNOWNFORMAT) != 0)
790 "could not set master file style");
814 const dns_master_style_t *style,
819 result = totext_ctx_init(style, &ctx);
822 "could not set master file style");
833 const dns_master_style_t *style,
838 result = totext_ctx_init(style, &ctx);
841 "could not set master file style");
870 if ((ctx->style.flags & DNS_STYLEFLAG_TTL) != 0) {
874 if ((ctx->style.flags & DNS_STYLEFLAG_COMMENT) != 0)
1021 if (ctx->style.flags & DNS_STYLEFLAG_TRUST) {
1022 if ((ctx->style.flags & DNS_STYLEFLAG_INDENT) != 0 ||
1023 (ctx->style.flags & DNS_STYLEFLAG_YAML) != 0)
1032 (ctx->style.flags & DNS_STYLEFLAG_NCACHE) == 0) {
1040 if ((ctx->style.flags & DNS_STYLEFLAG_OMIT_OWNER) != 0)
1043 if (ctx->style.flags & DNS_STYLEFLAG_RESIGN &&
1050 if ((ctx->style.flags & DNS_STYLEFLAG_INDENT) != 0 ||
1051 (ctx->style.flags & DNS_STYLEFLAG_YAML) != 0)
1204 (ctx->style.flags & DNS_STYLEFLAG_NCACHE) == 0) {
1441 const dns_master_style_t *style, FILE *f, dns_dumpctx_t **dctxp,
1486 result = totext_ctx_init(style, &dctx->tctx);
1489 "could not set master file style");
1499 (dctx->tctx.style.flags & DNS_STYLEFLAG_REL_OWNER) != 0) {
1673 if ((dctx->tctx.style.flags &
1747 const dns_master_style_t *style,
1759 result = dumpctx_create(mctx, db, version, style, f, &dctx,
1784 const dns_master_style_t *style,
1787 return (dns_master_dumptostream3(mctx, db, version, style,
1794 const dns_master_style_t *style,
1797 return (dns_master_dumptostream3(mctx, db, version, style,
1804 const dns_master_style_t *style,
1811 result = dumpctx_create(mctx, db, version, style, f, &dctx,
1863 const dns_master_style_t *style, const char *filename,
1867 return (dns_master_dumpinc3(mctx, db, version, style, filename, task,
1874 const dns_master_style_t *style, const char *filename,
1878 return (dns_master_dumpinc3(mctx, db, version, style, filename, task,
1884 const dns_master_style_t *style, const char *filename,
1903 result = dumpctx_create(mctx, db, version, style, f, &dctx,
1938 const dns_master_style_t *style, const char *filename)
1940 return (dns_master_dump3(mctx, db, version, style, filename,
1946 const dns_master_style_t *style, const char *filename,
1949 return (dns_master_dump3(mctx, db, version, style, filename,
1955 const dns_master_style_t *style, const char *filename,
1967 result = dumpctx_create(mctx, db, version, style, f, &dctx,
1991 const dns_master_style_t *style,
2001 result = totext_ctx_init(style, &ctx);
2004 "could not set master file style");
2034 const dns_master_style_t *style, const char *filename)
2049 style, f);
2072 dns_master_styleflags(const dns_master_style_t *style) {
2073 REQUIRE(style != NULL);
2074 return (style->flags);
2097 dns_master_style_t *style;
2100 style = isc_mem_get(mctx, sizeof(*style));
2101 if (style == NULL)
2104 style->flags = flags;
2105 style->ttl_column = ttl_column;
2106 style->class_column = class_column;
2107 style->type_column = type_column;
2108 style->rdata_column = rdata_column;
2109 style->line_length = line_length;
2110 style->tab_width = tab_width;
2111 style->split_width = split_width;
2112 *stylep = style;
2118 dns_master_style_t *style;
2121 style = *stylep;
2123 isc_mem_put(mctx, style, sizeof(*style));