ir: make bt_ctf_trace_create() create an empty packet header FT
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 2 May 2017 18:17:48 +0000 (14:17 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:41 +0000 (12:57 -0400)
commit488e09a789fe633309abda5f9b65d55a9ab6e10a
treedb96854a9ca3a202d6ea742c8cf8d0dfcf3de673
parent65ee897d07b493a0ddc6ba24eee070ee2849a0a6
ir: make bt_ctf_trace_create() create an empty packet header FT

Currently bt_ctf_trace_create() creates an initial default packet header
field type with the `magic`, `uuid`, and `stream_id` fields. This is, in
fact, specific to CTF writer. Since the trace API is not public yet,
move this default packet header FT creation from bt_ctf_trace_create()
to bt_ctf_writer_create() to ensure backward compatibility.

This patch also fixes a few things in the API doc. of trace.h.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/ctf-ir/trace.h
lib/ctf-ir/trace.c
lib/ctf-writer/writer.c
This page took 0.02544 seconds and 4 git commands to generate.