Commit | Line | Data |
---|---|---|
d2d857a8 MJ |
1 | # |
2 | # Copyright (C) 2019 EfficiOS Inc. | |
3 | # | |
4 | # This program is free software; you can redistribute it and/or | |
5 | # modify it under the terms of the GNU General Public License | |
6 | # as published by the Free Software Foundation; only version 2 | |
7 | # of the License. | |
8 | # | |
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | # GNU General Public License for more details. | |
13 | # | |
14 | # You should have received a copy of the GNU General Public License | |
15 | # along with this program; if not, write to the Free Software | |
16 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
17 | # | |
18 | ||
4965530a PP |
19 | import bt2 |
20 | ||
21 | ||
88b3fc9c | 22 | class MyIter(bt2._UserMessageIterator): |
4965530a PP |
23 | pass |
24 | ||
25 | ||
26 | @bt2.plugin_component_class | |
cfbd7cf3 | 27 | class MySource(bt2._UserSourceComponent, message_iterator_class=MyIter): |
4965530a PP |
28 | pass |
29 | ||
30 | ||
31 | @bt2.plugin_component_class | |
cfbd7cf3 | 32 | class MyFilter(bt2._UserFilterComponent, message_iterator_class=MyIter): |
4965530a PP |
33 | pass |
34 | ||
35 | ||
36 | @bt2.plugin_component_class | |
37 | class MySink(bt2._UserSinkComponent): | |
38 | def _consume(self): | |
39 | pass | |
40 | ||
a01b452b SM |
41 | def _graph_is_configured(self): |
42 | pass | |
43 | ||
4965530a | 44 | |
cfbd7cf3 FD |
45 | bt2.register_plugin( |
46 | __name__, | |
47 | 'sparkling', | |
48 | author='Philippe Proulx', | |
49 | description='A delicious plugin.', | |
50 | version=(1, 2, 3, 'EXTRA'), | |
51 | license='MIT', | |
52 | ) |