Lines Matching defs:style

97 	dns_master_style_t style;
195 * A style suitable for dns_rdataset_totext().
231 * YAML style
353 totext_ctx_init(const dns_master_style_t *style, const dns_indent_t *indentctx,
357 REQUIRE(style->tab_width != 0);
360 if ((style->flags & DNS_STYLEFLAG_YAML) != 0) {
367 ctx->style = *style;
375 if ((ctx->style.flags & DNS_STYLEFLAG_MULTILINE) != 0) {
390 if ((ctx->style.flags & DNS_STYLEFLAG_INDENT) != 0 ||
391 (ctx->style.flags & DNS_STYLEFLAG_YAML) != 0)
402 if ((ctx->style.flags & DNS_STYLEFLAG_COMMENTDATA) != 0) {
411 result = indent(&col, ctx->style.rdata_column,
412 ctx->style.tab_width, &buf);
450 if ((ctx->style.flags & DNS_STYLEFLAG_YAML) != 0) { \
454 } else if ((result = indent(&column, ctx->style.col, \
455 ctx->style.tab_width, target)) != \
524 if ((ctx->style.flags & DNS_STYLEFLAG_INDENT) != 0 ||
525 (ctx->style.flags & DNS_STYLEFLAG_YAML) != 0)
534 if ((ctx->style.flags & DNS_STYLEFLAG_YAML) != 0) {
623 if ((ctx->style.flags & DNS_STYLEFLAG_INDENT) != 0 ||
624 (ctx->style.flags & DNS_STYLEFLAG_YAML) != 0)
634 if ((ctx->style.flags & DNS_STYLEFLAG_YAML) != 0) {
637 } else if ((ctx->style.flags & DNS_STYLEFLAG_COMMENTDATA) != 0)
646 !((ctx->style.flags & DNS_STYLEFLAG_OMIT_OWNER) != 0 &&
660 if ((ctx->style.flags & DNS_STYLEFLAG_NO_TTL) == 0 &&
661 !((ctx->style.flags & DNS_STYLEFLAG_OMIT_TTL) != 0 &&
669 if ((ctx->style.flags & DNS_STYLEFLAG_TTL_UNITS) != 0) {
694 if ((ctx->style.flags & DNS_STYLEFLAG_TTL) == 0) {
703 if ((ctx->style.flags & DNS_STYLEFLAG_NO_CLASS) == 0 &&
704 ((ctx->style.flags & DNS_STYLEFLAG_OMIT_CLASS) == 0 ||
710 if ((ctx->style.flags & DNS_STYLEFLAG_UNKNOWNFORMAT) !=
743 if ((ctx->style.flags & DNS_STYLEFLAG_KEYDATA) != 0) {
754 if ((ctx->style.flags & DNS_STYLEFLAG_UNKNOWNFORMAT) !=
791 &rdata, ctx->origin, ctx->style.flags,
792 ctx->style.line_length -
793 ctx->style.rdata_column,
794 ctx->style.split_width, ctx->linebreak,
845 if ((ctx->style.flags & DNS_STYLEFLAG_YAML) != 0) {
863 if ((ctx->style.flags & DNS_STYLEFLAG_UNKNOWNFORMAT) != 0) {
881 if ((ctx->style.flags & DNS_STYLEFLAG_UNKNOWNFORMAT) != 0) {
909 UNEXPECTED_ERROR("could not set master file style");
935 const dns_master_style_t *style, dns_indent_t *indent,
939 result = totext_ctx_init(style, indent, &ctx);
941 UNEXPECTED_ERROR("could not set master file style");
951 const dns_master_style_t *style,
955 result = totext_ctx_init(style, NULL, &ctx);
957 UNEXPECTED_ERROR("could not set master file style");
983 if ((ctx->style.flags & DNS_STYLEFLAG_TTL) != 0) {
987 if ((ctx->style.flags & DNS_STYLEFLAG_COMMENT) != 0) {
1115 if ((ctx->style.flags & DNS_STYLEFLAG_CLASS_PERNAME) != 0) {
1135 (ctx->style.flags & DNS_STYLEFLAG_EXPIRED) == 0)
1142 if ((ctx->style.flags & DNS_STYLEFLAG_TRUST) != 0) {
1143 if ((ctx->style.flags & DNS_STYLEFLAG_INDENT) != 0 ||
1144 (ctx->style.flags & DNS_STYLEFLAG_YAML) != 0)
1154 (ctx->style.flags & DNS_STYLEFLAG_NCACHE) == 0)
1176 if ((ctx->style.flags & DNS_STYLEFLAG_OMIT_OWNER) != 0)
1181 if (((ctx->style.flags & DNS_STYLEFLAG_RESIGN) != 0) &&
1189 if ((ctx->style.flags & DNS_STYLEFLAG_INDENT) != 0 ||
1190 (ctx->style.flags & DNS_STYLEFLAG_YAML) != 0)
1348 (ctx->style.flags & DNS_STYLEFLAG_NCACHE) == 0)
1563 const dns_master_style_t *style, FILE *f, dns_dumpctx_t **dctxp,
1592 result = totext_ctx_init(style, NULL, &dctx->tctx);
1594 UNEXPECTED_ERROR("could not set master file style");
1608 (dctx->tctx.style.flags & DNS_STYLEFLAG_REL_OWNER) != 0)
1724 if ((dctx->tctx.style.flags & DNS_STYLEFLAG_EXPIRED) != 0) {
1754 if ((dctx->tctx.style.flags & DNS_STYLEFLAG_REL_DATA) !=
1794 const dns_master_style_t *style, FILE *f,
1804 result = dumpctx_create(mctx, db, version, style, f, &dctx,
1820 const dns_master_style_t *style,
1826 result = dumpctx_create(mctx, db, version, style, f, &dctx, format,
1879 const dns_master_style_t *style, const char *filename,
1896 result = dumpctx_create(mctx, db, version, style, f, &dctx, format,
1925 const dns_master_style_t *style, const char *filename,
1937 result = dumpctx_create(mctx, db, version, style, f, &dctx, format,
1955 dns_master_styleflags(const dns_master_style_t *style) {
1956 REQUIRE(style != NULL);
1957 return style->flags;
1967 dns_master_style_t *style;
1970 style = isc_mem_get(mctx, sizeof(*style));
1972 style->flags = flags;
1973 style->ttl_column = ttl_column;
1974 style->class_column = class_column;
1975 style->type_column = type_column;
1976 style->rdata_column = rdata_column;
1977 style->line_length = line_length;
1978 style->tab_width = tab_width;
1979 style->split_width = split_width;
1980 *stylep = style;
1986 dns_master_style_t *style;
1989 style = *stylep;
1991 isc_mem_put(mctx, style, sizeof(*style));