X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Ffs-sink%2Ftranslate-ctf-ir-to-tsdl.cpp;h=d3e5083f0e6073a09de8be450ac5f55ea8f426af;hb=c802cacb9f0879a42e01575595a75bbefe7d3db9;hp=1d673820247bce466162be0989ea847faae34b88;hpb=4164020e790fa6c0700715936b40a3fa46df479e;p=babeltrace.git diff --git a/src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.cpp b/src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.cpp index 1d673820..d3e5083f 100644 --- a/src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.cpp +++ b/src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.cpp @@ -4,18 +4,19 @@ * Copyright 2019 Philippe Proulx */ -#include "translate-ctf-ir-to-tsdl.hpp" - -#include -#include "common/macros.h" -#include +#include #include +#include #include -#include + +#include + #include "common/assert.h" +#include "common/macros.h" #include "compat/endian.h" #include "fs-sink-ctf-meta.hpp" +#include "translate-ctf-ir-to-tsdl.hpp" struct ctx { @@ -287,7 +288,7 @@ static void append_float_field_class(struct ctx *ctx, struct fs_sink_ctf_field_c mant_dig, exp_dig, fc->base.base.alignment); } -static void append_string_field_class(struct ctx *ctx, struct fs_sink_ctf_field_class_string *fc) +static void append_string_field_class(struct ctx *ctx) { g_string_append(ctx->tsdl, "string { encoding = UTF8; }"); } @@ -489,7 +490,7 @@ static void append_field_class(struct ctx *ctx, struct fs_sink_ctf_field_class * append_float_field_class(ctx, fs_sink_ctf_field_class_as_float(fc)); break; case FS_SINK_CTF_FIELD_CLASS_TYPE_STRING: - append_string_field_class(ctx, fs_sink_ctf_field_class_as_string(fc)); + append_string_field_class(ctx); break; case FS_SINK_CTF_FIELD_CLASS_TYPE_STRUCT: append_struct_field_class(ctx, fs_sink_ctf_field_class_as_struct(fc)); @@ -776,7 +777,6 @@ static void append_stream_class(struct ctx *ctx, struct fs_sink_ctf_stream_class } } -BT_HIDDEN void translate_trace_ctf_ir_to_tsdl(struct fs_sink_ctf_trace *trace, GString *tsdl) { struct ctx ctx = {