-class _SourceComponent(_Component):
- _borrow_component_class_ptr = staticmethod(native_bt.component_source_borrow_class_const)
- _comp_cls_type = native_bt.COMPONENT_CLASS_TYPE_SOURCE
- _as_component_class_ptr = staticmethod(native_bt.component_class_source_as_component_class)
- _as_component_ptr = staticmethod(native_bt.component_source_as_component_const)
-
-
-class _FilterComponent(_Component):
- _borrow_component_class_ptr = staticmethod(native_bt.component_filter_borrow_class_const)
- _comp_cls_type = native_bt.COMPONENT_CLASS_TYPE_FILTER
- _as_component_class_ptr = staticmethod(native_bt.component_class_filter_as_component_class)
- _as_component_ptr = staticmethod(native_bt.component_filter_as_component_const)
-
-
-class _SinkComponent(_Component):
- _borrow_component_class_ptr = staticmethod(native_bt.component_sink_borrow_class_const)
- _comp_cls_type = native_bt.COMPONENT_CLASS_TYPE_SINK
- _as_component_class_ptr = staticmethod(native_bt.component_class_sink_as_component_class)
- _as_component_ptr = staticmethod(native_bt.component_sink_as_component_const)
-
-
-# This is analogous to _GenericSourceComponentClass, but for source
+class _SourceComponentConst(_ComponentConst):
+ _bt_borrow_component_class_ptr = staticmethod(
+ native_bt.component_source_borrow_class_const
+ )
+ _bt_comp_cls_type = native_bt.COMPONENT_CLASS_TYPE_SOURCE
+ _bt_as_component_class_ptr = staticmethod(
+ native_bt.component_class_source_as_component_class
+ )
+ _bt_as_component_ptr = staticmethod(native_bt.component_source_as_component_const)
+
+
+class _FilterComponentConst(_ComponentConst):
+ _bt_borrow_component_class_ptr = staticmethod(
+ native_bt.component_filter_borrow_class_const
+ )
+ _bt_comp_cls_type = native_bt.COMPONENT_CLASS_TYPE_FILTER
+ _bt_as_component_class_ptr = staticmethod(
+ native_bt.component_class_filter_as_component_class
+ )
+ _bt_as_component_ptr = staticmethod(native_bt.component_filter_as_component_const)
+
+
+class _SinkComponentConst(_ComponentConst):
+ _bt_borrow_component_class_ptr = staticmethod(
+ native_bt.component_sink_borrow_class_const
+ )
+ _bt_comp_cls_type = native_bt.COMPONENT_CLASS_TYPE_SINK
+ _bt_as_component_class_ptr = staticmethod(
+ native_bt.component_class_sink_as_component_class
+ )
+ _bt_as_component_ptr = staticmethod(native_bt.component_sink_as_component_const)
+
+
+# This is analogous to _SourceComponentClassConst, but for source