lib: make clock class precision optional
With the intent of supporting CTF 2, make the precision property of
clock classes optional under MIP 1.
- Change the precision field of struct bt_clock_class to
bt_property_uint.
- Adjust lib-logging to omit the precision if not set.
- Change bt_clock_class_create to make the precision property available
with MIP 0, so that the precision will always be available with MIP
0 (still with an initial value of 0).
- Restrict bt_clock_class_get_precision to MIP 0.
- Add bt_clock_class_get_opt_precision, which returns a
bt_property_availability value. Note that
bt_clock_class_get_opt_precision can be used with MIP 0, it will
always return BT_PROPERTY_AVAILABILITY_AVAILABLE.
Not done in this patch: adapt the Python bindings.
Philippe updated the documentation.
Change-Id: I1daf6627fda741f854d85ad6ff6f4ad132591662
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10710
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12724
This page took 0.023947 seconds and 4 git commands to generate.