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 * | |
35 | from bt2.stream_class import * | |
36 | from bt2.trace import * | |
37 | from bt2.values import * | |
38 | ||
39 | ||
40 | class Error(Exception): | |
41 | pass | |
42 | ||
43 | ||
44 | class CreationError(Error): | |
45 | pass | |
46 | ||
47 | ||
48 | class FrozenError(Error): | |
49 | pass | |
50 | ||
51 | ||
52 | class UnsupportedFeature(Exception): | |
53 | pass | |
54 | ||
55 | ||
56 | class TryAgain(Exception): | |
57 | pass | |
58 | ||
59 | ||
60 | class Stop(StopIteration): | |
61 | pass | |
62 | ||
63 | ||
64 | class IncompleteUserClassError(Error): | |
65 | pass | |
66 | ||
67 | ||
68 | ||
69 | import bt2.native_bt as _native_bt | |
70 | import atexit | |
71 | ||
72 | atexit.register(_native_bt.py3_cc_exit_handler) | |
73 | _native_bt.py3_cc_init_from_bt2() |