lib/plugin/plugin.c: do not use G_MODULE_BIND_LOCAL for Python plugin provider
[babeltrace.git] / bindings / python / bt2 / __init__.py.in
CommitLineData
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
26from bt2.clock_class import *
27from bt2.component import *
28from bt2.ctf_writer import *
29from bt2.event_class import *
30from bt2.field_types import *
31from bt2.fields import *
32from bt2.notification import *
33from bt2.notification_iterator import *
34from bt2.plugin import *
55bb57e0 35from bt2.py_plugin import *
81447b5b
PP
36from bt2.stream_class import *
37from bt2.trace import *
38from bt2.values import *
39
40
41class Error(Exception):
42 pass
43
44
45class CreationError(Error):
46 pass
47
48
49class FrozenError(Error):
50 pass
51
52
9a0a47ae
PP
53class NoSuchPluginError(Error):
54 pass
55
56
81447b5b
PP
57class UnsupportedFeature(Exception):
58 pass
59
60
61class TryAgain(Exception):
62 pass
63
64
65class Stop(StopIteration):
66 pass
67
68
69class IncompleteUserClassError(Error):
70 pass
71
72
81447b5b
PP
73import bt2.native_bt as _native_bt
74import atexit
75
76atexit.register(_native_bt.py3_cc_exit_handler)
77_native_bt.py3_cc_init_from_bt2()
This page took 0.032023 seconds and 4 git commands to generate.