From 1e8bb79bbe9befd86e018e0d5f6d960e9c789462 Mon Sep 17 00:00:00 2001 From: Taylor Yu Date: Wed, 3 Jul 2019 16:35:35 -0500 Subject: add KV_RAW to kvline.c Add the KV_RAW flag to kvline_encode(). This allows generation of output that is compatible with some quirks of the control protocol. Part of #30984. --- src/lib/encoding/kvline.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/encoding/kvline.h') diff --git a/src/lib/encoding/kvline.h b/src/lib/encoding/kvline.h index dea2ce1809..9d36902ad1 100644 --- a/src/lib/encoding/kvline.h +++ b/src/lib/encoding/kvline.h @@ -19,6 +19,7 @@ struct config_line_t; #define KV_OMIT_KEYS (1u<<1) #define KV_OMIT_VALS (1u<<2) #define KV_QUOTED_QSTRING (1u<<3) +#define KV_RAW (1u<<4) struct config_line_t *kvline_parse(const char *line, unsigned flags); char *kvline_encode(const struct config_line_t *line, unsigned flags); -- cgit v1.2.3-54-g00ecf