python-plugin-provider: Make it build
[babeltrace.git] / tests / python-plugin-provider / bt_plugin_test_python_plugin_provider.py
CommitLineData
a26f524a
PP
1import bt2
2
3
09fc237b 4class MyIter(bt2._UserMessageIterator):
a26f524a
PP
5 pass
6
7
8@bt2.plugin_component_class
9class MySource(bt2._UserSourceComponent,
09fc237b 10 message_iterator_class=MyIter):
a26f524a
PP
11 pass
12
13
14@bt2.plugin_component_class
15class MyFilter(bt2._UserFilterComponent,
09fc237b 16 message_iterator_class=MyIter):
a26f524a
PP
17 pass
18
19
20@bt2.plugin_component_class
21class MySink(bt2._UserSinkComponent):
22 def _consume(self):
23 pass
24
25
26bt2.register_plugin(__name__, 'sparkling', author='Philippe Proulx',
27 description='A delicious plugin.',
28 version=(1, 2, 3, 'EXTRA'),
29 license='MIT')
This page took 0.032438 seconds and 4 git commands to generate.