projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sort includes in C++ files
[babeltrace.git]
/
src
/
plugins
/
ctf
/
fs-sink
/
translate-ctf-ir-to-tsdl.cpp
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 1d673820247bce466162be0989ea847faae34b88..d3e5083f0e6073a09de8be450ac5f55ea8f426af 100644
(file)
--- 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 <pproulx@efficios.com>
*/
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
-#include "translate-ctf-ir-to-tsdl.hpp"
-
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include <stdio.h>
+#include <glib.h>
#include <stdbool.h>
#include <stdbool.h>
+#include <stdio.h>
#include <string.h>
#include <string.h>
-#include <glib.h>
+
+#include <babeltrace2/babeltrace.h>
+
#include "common/assert.h"
#include "common/assert.h"
+#include "common/macros.h"
#include "compat/endian.h"
#include "fs-sink-ctf-meta.hpp"
#include "compat/endian.h"
#include "fs-sink-ctf-meta.hpp"
+#include "translate-ctf-ir-to-tsdl.hpp"
struct ctx
{
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);
}
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; }");
}
{
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_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));
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 = {
void translate_trace_ctf_ir_to_tsdl(struct fs_sink_ctf_trace *trace, GString *tsdl)
{
struct ctx ctx = {
This page took
0.023233 seconds
and
4
git commands to generate.