Commit | Line | Data |
---|---|---|
81447b5b PP |
1 | # The MIT License (MIT) |
2 | # | |
3 | # Copyright (c) 2016 Philippe Proulx <pproulx@efficios.com> | |
4 | # | |
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy | |
6 | # of this software and associated documentation files (the "Software"), to deal | |
7 | # in the Software without restriction, including without limitation the rights | |
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
9 | # copies of the Software, and to permit persons to whom the Software is | |
10 | # furnished to do so, subject to the following conditions: | |
11 | # | |
12 | # The above copyright notice and this permission notice shall be included in | |
13 | # all copies or substantial portions of the Software. | |
14 | # | |
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
21 | # THE SOFTWARE. | |
22 | ||
23 | __version__ = '@PACKAGE_VERSION@' | |
24 | ||
25 | ||
26 | from bt2.clock_class import * | |
27 | from bt2.component import * | |
28 | from bt2.ctf_writer import * | |
29 | from bt2.event_class import * | |
30 | from bt2.field_types import * | |
31 | from bt2.fields import * | |
32 | from bt2.notification import * | |
33 | from bt2.notification_iterator import * | |
34 | from bt2.plugin import * | |
55bb57e0 | 35 | from bt2.py_plugin import * |
81447b5b PP |
36 | from bt2.stream_class import * |
37 | from bt2.trace import * | |
38 | from bt2.values import * | |
39 | ||
40 | ||
41 | class Error(Exception): | |
42 | pass | |
43 | ||
44 | ||
45 | class CreationError(Error): | |
46 | pass | |
47 | ||
48 | ||
49 | class FrozenError(Error): | |
50 | pass | |
51 | ||
52 | ||
53 | class UnsupportedFeature(Exception): | |
54 | pass | |
55 | ||
56 | ||
57 | class TryAgain(Exception): | |
58 | pass | |
59 | ||
60 | ||
61 | class Stop(StopIteration): | |
62 | pass | |
63 | ||
64 | ||
65 | class IncompleteUserClassError(Error): | |
66 | pass | |
67 | ||
68 | ||
69 | ||
70 | import bt2.native_bt as _native_bt | |
71 | import atexit | |
72 | ||
73 | atexit.register(_native_bt.py3_cc_exit_handler) | |
74 | _native_bt.py3_cc_init_from_bt2() |