Fix: test_seek should only output one TAP plan

On critical failure paths, the test_seek test was outputting multiple
TAP plans, which according to the specification [1] is invalid. This
causes parsing issues on very strict TAP parsers.

[1] - http://podwiki.hexten.net/TAP/TAP.html?page=TAP

Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Add a CTF Writer API (headers only)
Fix: Improper use of LDFLAGS in libbabeltrace-ctf's Makefile.am

*_LDFLAGS should not be used to link libraries since automake won't identify
them as dependencies of the target. This would cause the target to not be
rebuilt when one of the CTF static library was modified.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add an internal reference counting API to the CTF Writer

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change CTF Writer memory management functions to a get/put model

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change CTF Writer API headers' name to plural where appropriate

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change bt_ctf_clock's functions signature to return int (in case of error)

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fix namespacing of the CTF Writer reference counting API

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fix bt_ctf_stream_create's signature to return an instance instead of void

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add _END entries to byte order and string encoding enums

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fix bt_ctf_writer_set_endianness' signature to report invalid arguments

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add an internal glib functor header to CTF Writer

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fix: CTF Writer API changes following a new review

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add CTF Writer Clock implementation

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add CTF Writer Trace implementation

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add CTF Event Types implementation

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fix: Comment refered to previous name of the structure_field type

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fix: A signed integer must have a size > 1

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add field name to field index hash tables to structure and variant types

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add an internal event-types API to get the field types of compound types

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>