lib: make variant field class option name optional with MIP > 0
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 17 May 2022 17:46:52 +0000 (13:46 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commitc8bbdcc7a33086a2a1c3be6e08cbc4a15017fdb2
treec39090857bf0c4d483a904e3eb1c71bf49b177ef
parent07c465ea11e26b26af7e0c8baec2bfd05ece5946
lib: make variant field class option name optional with MIP > 0

CTF2-SPEC-2.0 [1] calls for optionally named variant field class
option, therefore libbabeltrace2 should support this.

Before this patch, having a variant field class option name is a
precondition. This patch relaxes said precondition when the MIP version
is greater than zero.

Note that a structure field member class must still have a name.

[1]: https://diamon.org/ctf/CTF2-SPEC-2.0.html

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I7f6da1276f75e4c42f1e99c8d0ce1333c9bfee5f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8047
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12690
include/babeltrace2/trace-ir/field-class.h
src/lib/trace-ir/field-class.c
src/lib/trace-ir/field-class.h
This page took 0.0247 seconds and 4 git commands to generate.