lib: add MIP 1 pre-conditions for functions taking a selector / length field class
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 29 Jan 2024 17:04:24 +0000 (17:04 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commit411794ceb3d39a27e2938b62e9d19f9c6566619e
tree6d0a077ec14e6bf5e39415b902958fdf9df014fb
parentcb4d83610a858d6ad247a1dcf90f5086ca74aa83
lib: add MIP 1 pre-conditions for functions taking a selector / length field class

MIP 1 deprecates referring to selector and length fields by passing a
field class pointer.

Add pre-condition checks for all functions that accept a selector or
length field class, to verify that the graph's MIP version is 0.

Add new macros in assert-cond.h to check for MIP version equality.

Philippe updated the documentation.

Change-Id: I980d8117c7460f79cfe802e2aba90eee71bc807a
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7315
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7198
doc/api/libbabeltrace2/Doxyfile.in
include/babeltrace2/trace-ir/field-class.h
src/lib/assert-cond.h
src/lib/trace-ir/field-class.c
This page took 0.024471 seconds and 4 git commands to generate.