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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:07:36 +0000 (00:07 -0400)
commit16ca5ff0568c72f5600ebc88b195fbc5ee88556d
treec7cd78a6670c16d39d7188e60ef8e4aa1022ef11
parent0f6bea4ef916464f2d2a0a597c28a6701ac51762
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.028592 seconds and 4 git commands to generate.