bt2: add option field class and field support
[babeltrace.git] / src / bindings / python / bt2 / bt2 / field_path.py
index bb644d05302c43c818b4d24c7dfd04df1c0f27f4..51f87709f981573c68dde05ac26d2e8de80f3e42 100644 (file)
@@ -48,6 +48,10 @@ class _CurrentArrayElementFieldPathItem(_FieldPathItem):
     pass
 
 
+class _CurrentOptionContentFieldPathItem(_FieldPathItem):
+    pass
+
+
 class _FieldPath(object._SharedObject, collections.abc.Iterable):
     _get_ref = staticmethod(native_bt.field_path_get_ref)
     _put_ref = staticmethod(native_bt.field_path_put_ref)
@@ -70,6 +74,8 @@ class _FieldPath(object._SharedObject, collections.abc.Iterable):
                 yield _IndexFieldPathItem(idx)
             elif item_type == native_bt.FIELD_PATH_ITEM_TYPE_CURRENT_ARRAY_ELEMENT:
                 yield _CurrentArrayElementFieldPathItem()
+            elif item_type == native_bt.FIELD_PATH_ITEM_TYPE_CURRENT_OPTION_CONTENT:
+                yield _CurrentOptionContentFieldPathItem()
             else:
                 assert False
 
This page took 0.0234 seconds and 4 git commands to generate.