aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libucl/ucl_emitter_streamline.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-08 18:26:58 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-08 18:26:58 +0000
commitff660e595fb04857e73e1f84d1e13d412fb980ef (patch)
tree89311f8e1131729d6216537c282925166408dd47 /contrib/libucl/ucl_emitter_streamline.c
parent40d4ca29664da075d9078161814b01070b6c0058 (diff)
downloadrspamd-ff660e595fb04857e73e1f84d1e13d412fb980ef.tar.gz
rspamd-ff660e595fb04857e73e1f84d1e13d412fb980ef.zip
Update libucl
Diffstat (limited to 'contrib/libucl/ucl_emitter_streamline.c')
-rw-r--r--contrib/libucl/ucl_emitter_streamline.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/libucl/ucl_emitter_streamline.c b/contrib/libucl/ucl_emitter_streamline.c
index ff27c8824..a7178c5d7 100644
--- a/contrib/libucl/ucl_emitter_streamline.c
+++ b/contrib/libucl/ucl_emitter_streamline.c
@@ -38,12 +38,20 @@ struct ucl_emitter_streamline_stack {
struct ucl_emitter_context_streamline {
/* Inherited from the main context */
+ /** Name of emitter (e.g. json, compact_json) */
const char *name;
+ /** Unique id (e.g. UCL_EMIT_JSON for standard emitters */
int id;
+ /** A set of output functions */
const struct ucl_emitter_functions *func;
+ /** A set of output operations */
const struct ucl_emitter_operations *ops;
- unsigned int ident;
+ /** Current amount of indent tabs */
+ unsigned int indent;
+ /** Top level object */
const ucl_object_t *top;
+ /** Optional comments */
+ const ucl_object_t *comments;
/* Streamline specific fields */
struct ucl_emitter_streamline_stack *containers;