_append_option should not be available on const versions of variant
classes. Move it to the non-const versions.
Change-Id: I9b3b9ce2c3cfa629a00f95396b2136384d75d1fa
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2043
CI-Build: Francis Deslauriers <francis.deslauriers@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
_borrow_option_ptr_by_index = staticmethod(
native_bt.field_class_variant_with_selector_unsigned_borrow_option_by_index_const
)
_borrow_option_ptr_by_index = staticmethod(
native_bt.field_class_variant_with_selector_unsigned_borrow_option_by_index_const
)
- _append_option = staticmethod(
- native_bt.field_class_variant_with_selector_unsigned_append_option
- )
_variant_option_pycls = _VariantFieldClassWithUnsignedSelectorOptionConst
_as_option_ptr = staticmethod(_variant_option_pycls._as_option_ptr)
_variant_option_pycls = _VariantFieldClassWithUnsignedSelectorOptionConst
_as_option_ptr = staticmethod(_variant_option_pycls._as_option_ptr)
_NAME = 'Variant (with unsigned selector)'
_variant_option_pycls = _VariantFieldClassWithUnsignedSelectorOption
_as_option_ptr = staticmethod(_variant_option_pycls._as_option_ptr)
_NAME = 'Variant (with unsigned selector)'
_variant_option_pycls = _VariantFieldClassWithUnsignedSelectorOption
_as_option_ptr = staticmethod(_variant_option_pycls._as_option_ptr)
+ _append_option = staticmethod(
+ native_bt.field_class_variant_with_selector_unsigned_append_option
+ )
class _VariantFieldClassWithSignedSelectorConst(_VariantFieldClassWithSelectorConst):
class _VariantFieldClassWithSignedSelectorConst(_VariantFieldClassWithSelectorConst):
_borrow_option_ptr_by_index = staticmethod(
native_bt.field_class_variant_with_selector_signed_borrow_option_by_index_const
)
_borrow_option_ptr_by_index = staticmethod(
native_bt.field_class_variant_with_selector_signed_borrow_option_by_index_const
)
- _append_option = staticmethod(
- native_bt.field_class_variant_with_selector_signed_append_option
- )
_variant_option_pycls = _VariantFieldClassWithSignedSelectorOptionConst
_as_option_ptr = staticmethod(_variant_option_pycls._as_option_ptr)
_variant_option_pycls = _VariantFieldClassWithSignedSelectorOptionConst
_as_option_ptr = staticmethod(_variant_option_pycls._as_option_ptr)
_NAME = 'Variant (with signed selector)'
_variant_option_pycls = _VariantFieldClassWithSignedSelectorOption
_as_option_ptr = staticmethod(_variant_option_pycls._as_option_ptr)
_NAME = 'Variant (with signed selector)'
_variant_option_pycls = _VariantFieldClassWithSignedSelectorOption
_as_option_ptr = staticmethod(_variant_option_pycls._as_option_ptr)
+ _append_option = staticmethod(
+ native_bt.field_class_variant_with_selector_signed_append_option
+ )
class _ArrayFieldClassConst(_FieldClassConst):
class _ArrayFieldClassConst(_FieldClassConst):