Commit | Line | Data |
---|---|---|
0235b0db | 1 | # SPDX-License-Identifier: GPL-2.0-only |
d2d857a8 MJ |
2 | # |
3 | # Copyright (C) 2019 EfficiOS Inc. | |
4 | # | |
d2d857a8 | 5 | |
4965530a PP |
6 | import bt2 |
7 | ||
8 | ||
88b3fc9c | 9 | class MyIter(bt2._UserMessageIterator): |
4965530a PP |
10 | pass |
11 | ||
12 | ||
13 | @bt2.plugin_component_class | |
cfbd7cf3 | 14 | class MySource(bt2._UserSourceComponent, message_iterator_class=MyIter): |
4965530a PP |
15 | pass |
16 | ||
17 | ||
18 | @bt2.plugin_component_class | |
cfbd7cf3 | 19 | class MyFilter(bt2._UserFilterComponent, message_iterator_class=MyIter): |
4965530a PP |
20 | pass |
21 | ||
22 | ||
23 | @bt2.plugin_component_class | |
24 | class MySink(bt2._UserSinkComponent): | |
6a91742b | 25 | def _user_consume(self): |
a01b452b SM |
26 | pass |
27 | ||
4965530a | 28 | |
cfbd7cf3 FD |
29 | bt2.register_plugin( |
30 | __name__, | |
f5567ea8 FD |
31 | "sparkling", |
32 | author="Philippe Proulx", | |
33 | description="A delicious plugin.", | |
34 | version=(1, 2, 3, "EXTRA"), | |
35 | license="MIT", | |
cfbd7cf3 | 36 | ) |