lib: fully detach CTF IR and CTF writer implementations
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 15 Aug 2018 22:42:03 +0000 (18:42 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:35 +0000 (18:19 -0400)
commit086dc475ceb130777725ddd30dff168f62a3d3ea
tree8a1e1b33c6fbe9f08a58fc3dc2a9ce3d55155edf
parent1e3d9900ec835dc8d2a890154e238476c8b8f9eb
lib: fully detach CTF IR and CTF writer implementations

This patch makes the CTF IR and CTF writer implementations completely
independent. To achieve this, files were partly or fully copied from CTF
IR to CTF writer directories, and everything part of the copied "common"
part was prefixed with `bt_ctf_` or `BT_CTF_` instead of `bt_` or `BT_`.

For the moment, both CTF IR and CTF writer implementations have their
own common part, each of which is only common to its own implementation
now.

Having independent implementations makes it easier to modify one,
sometimes drastically, without caring about not changing the common part
too much.

The BT_LIB_LOG*() macros do not accept the `w` category anymore, making
the CTF writer objects not supported by them. The `_` category is still
accepted for the common part of the CTF IR objects.

The CTF writer clock class API is hidden instead of being public as of
this patch because this was faster to implement and it does not break
backward compatibility with Babeltrace 1.

For some reason, `plugins/text/pretty/print.c` used some `BT_CTF_*`
enumeration members, so this is fixed too.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
56 files changed:
include/Makefile.am
include/babeltrace/babeltrace.h
include/babeltrace/ctf-ir/utils.h
include/babeltrace/ctf-writer/attributes-internal.h [new file with mode: 0644]
include/babeltrace/ctf-writer/clock-class-internal.h [new file with mode: 0644]
include/babeltrace/ctf-writer/clock-class.h [deleted file]
include/babeltrace/ctf-writer/clock-internal.h
include/babeltrace/ctf-writer/event-class-internal.h [new file with mode: 0644]
include/babeltrace/ctf-writer/event-fields.h
include/babeltrace/ctf-writer/event-internal.h
include/babeltrace/ctf-writer/event-types.h
include/babeltrace/ctf-writer/event.h
include/babeltrace/ctf-writer/field-path-internal.h [new file with mode: 0644]
include/babeltrace/ctf-writer/field-types-internal.h
include/babeltrace/ctf-writer/field-types.h
include/babeltrace/ctf-writer/field-wrapper-internal.h [new file with mode: 0644]
include/babeltrace/ctf-writer/fields-internal.h
include/babeltrace/ctf-writer/fields.h
include/babeltrace/ctf-writer/resolve-internal.h [new file with mode: 0644]
include/babeltrace/ctf-writer/serialize-internal.h
include/babeltrace/ctf-writer/stream-class-internal.h
include/babeltrace/ctf-writer/stream-class.h
include/babeltrace/ctf-writer/stream-internal.h
include/babeltrace/ctf-writer/trace-internal.h
include/babeltrace/ctf-writer/trace.h
include/babeltrace/ctf-writer/utils-internal.h [new file with mode: 0644]
include/babeltrace/ctf-writer/utils.h [new file with mode: 0644]
include/babeltrace/ctf-writer/validation-internal.h [new file with mode: 0644]
include/babeltrace/ctf-writer/visitor-internal.h [new file with mode: 0644]
include/babeltrace/ctf-writer/visitor.h [new file with mode: 0644]
include/babeltrace/ctf-writer/writer-internal.h
include/babeltrace/lib-logging-internal.h
lib/ctf-writer/Makefile.am
lib/ctf-writer/attributes.c [new file with mode: 0644]
lib/ctf-writer/clock-class.c [new file with mode: 0644]
lib/ctf-writer/clock.c
lib/ctf-writer/event-class.c
lib/ctf-writer/event.c
lib/ctf-writer/field-path.c [new file with mode: 0644]
lib/ctf-writer/field-types.c
lib/ctf-writer/field-wrapper.c [new file with mode: 0644]
lib/ctf-writer/fields.c
lib/ctf-writer/functor.c
lib/ctf-writer/resolve.c [new file with mode: 0644]
lib/ctf-writer/serialize.c
lib/ctf-writer/stream-class.c
lib/ctf-writer/stream.c
lib/ctf-writer/trace.c
lib/ctf-writer/utils.c [new file with mode: 0644]
lib/ctf-writer/validation.c [new file with mode: 0644]
lib/ctf-writer/visitor.c [new file with mode: 0644]
lib/ctf-writer/writer.c
lib/lib-logging.c
plugins/text/pretty/print.c
plugins/utils/trimmer/iterator.c
tests/lib/test_ctf_writer.c
This page took 0.028511 seconds and 4 git commands to generate.