diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-10-27 21:19:11 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-10-27 21:19:11 +0000 |
| commit | 4e2fa78ea36ec2cf6583bc025b4127c5ea238fd2 (patch) | |
| tree | 776471e6ddbb557aac5a48779cb813f63c28b4d5 /src/ucl_emitter_utils.c | |
| parent | 15b8b407ee0ee485e82a9de35932da2053f2c390 (diff) | |
Notes
Diffstat (limited to 'src/ucl_emitter_utils.c')
| -rw-r--r-- | src/ucl_emitter_utils.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ucl_emitter_utils.c b/src/ucl_emitter_utils.c index 91cad78bcbf6..95ac9a5d5776 100644 --- a/src/ucl_emitter_utils.c +++ b/src/ucl_emitter_utils.c @@ -62,6 +62,12 @@ static const struct ucl_emitter_context ucl_standard_emitters[] = { .id = UCL_EMIT_YAML, .func = NULL, .ops = &ucl_standartd_emitter_ops[UCL_EMIT_YAML] + }, + [UCL_EMIT_MSGPACK] = { + .name = "msgpack", + .id = UCL_EMIT_MSGPACK, + .func = NULL, + .ops = &ucl_standartd_emitter_ops[UCL_EMIT_MSGPACK] } }; @@ -73,7 +79,7 @@ static const struct ucl_emitter_context ucl_standard_emitters[] = { const struct ucl_emitter_context * ucl_emit_get_standard_context (enum ucl_emitter emit_type) { - if (emit_type >= UCL_EMIT_JSON && emit_type <= UCL_EMIT_YAML) { + if (emit_type >= UCL_EMIT_JSON && emit_type < UCL_EMIT_MAX) { return &ucl_standard_emitters[emit_type]; } |
