ir: make bt_ctf_field_type_copy() public
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sun, 14 Aug 2016 19:14:22 +0000 (15:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 17:41:38 +0000 (13:41 -0400)
commit06629ab3b4650e8a5aaf056572577bb299c5ac22
treeef677396353edf4c0e8e0498ae6ad36465b5ccf4
parent5e3d522e3e6d9d941d9860271f288d85aa84d3af
ir: make bt_ctf_field_type_copy() public

This function can be useful for some source plugins which support
aliases in their metadata description: the base type is created
once, then one copy is created for each instance (possibly with
a different tag if it's a variant alias, for example).

The copy and all its children have their valid flag reset to 0 (as
well as their frozen flag). This means that they are not considered
valid after the copy operation. The length and tag field paths of
resp. sequence and variant field types will be resolved later when
this copy is used as one of the types of an event class, a stream
class, or a trace, and when it's about to be frozen in those
contexts.

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