Fix: babeltrace: writer.py: do not use += on bt2.trace._TraceEnv
[babeltrace.git] / bindings / python / bt2 / bt2 / __init__.py.in
CommitLineData
81447b5b
PP
1# The MIT License (MIT)
2#
811644b8 3# Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
81447b5b
PP
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 *
811644b8 27from bt2.clock_class_priority_map import *
79c39ab9 28from bt2.clock_value import *
81447b5b 29from bt2.component import *
811644b8
PP
30from bt2.component import _FilterComponent
31from bt2.component import _GenericFilterComponentClass
32from bt2.component import _GenericSinkComponentClass
33from bt2.component import _GenericSourceComponentClass
34from bt2.component import _SinkComponent
35from bt2.component import _SourceComponent
36from bt2.component import _UserFilterComponent
37from bt2.component import _UserSinkComponent
38from bt2.component import _UserSourceComponent
39from bt2.connection import *
40from bt2.connection import _Connection
41from bt2.connection import _PrivateConnection
81447b5b 42from bt2.ctf_writer import *
811644b8
PP
43from bt2.ctf_writer import _CtfWriterStream
44from bt2.event import _Event
81447b5b
PP
45from bt2.event_class import *
46from bt2.field_types import *
811644b8 47from bt2.field_types import _FieldType
81447b5b 48from bt2.fields import *
811644b8
PP
49from bt2.fields import _ArrayField
50from bt2.fields import _EnumerationField
51from bt2.fields import _Field
52from bt2.fields import _FloatingPointNumberField
53from bt2.fields import _IntegerField
54from bt2.fields import _SequenceField
55from bt2.fields import _StringField
56from bt2.fields import _StructureField
57from bt2.fields import _VariantField
58from bt2.graph import *
59from bt2.logging import *
81447b5b 60from bt2.notification import *
811644b8
PP
61from bt2.notification import _DiscardedEventsNotification
62from bt2.notification import _DiscardedPacketsNotification
81447b5b 63from bt2.notification_iterator import *
811644b8
PP
64from bt2.notification_iterator import _UserNotificationIterator
65from bt2.packet import _Packet
81447b5b 66from bt2.plugin import *
811644b8
PP
67from bt2.port import *
68from bt2.port import _InputPort
69from bt2.port import _OutputPort
70from bt2.port import _Port
71from bt2.port import _PrivateInputPort
72from bt2.port import _PrivateOutputPort
73from bt2.port import _PrivatePort
55bb57e0 74from bt2.py_plugin import *
c7eee084 75from bt2.query_executor import *
811644b8 76from bt2.stream import _Stream
81447b5b
PP
77from bt2.stream_class import *
78from bt2.trace import *
85dcce24 79from bt2.trace_collection_notification_iterator import *
81447b5b 80from bt2.values import *
811644b8 81from bt2.values import _Value
81447b5b
PP
82
83
84class Error(Exception):
85 pass
86
87
88class CreationError(Error):
89 pass
90
91
811644b8 92class Frozen(Error):
81447b5b
PP
93 pass
94
95
c7eee084
PP
96class InvalidQueryObject(Error):
97 pass
98
99
100class InvalidQueryParams(Error):
101 pass
102
103
81447b5b
PP
104class UnsupportedFeature(Exception):
105 pass
106
107
811644b8
PP
108class NoSinkComponent(Exception):
109 pass
110
111
81447b5b
PP
112class TryAgain(Exception):
113 pass
114
115
116class Stop(StopIteration):
117 pass
118
119
811644b8
PP
120class PortConnectionRefused(Exception):
121 pass
122
123
124class IncompleteUserClass(Error):
81447b5b
PP
125 pass
126
127
1d915789
PP
128class CannotConsumeGraph(Error):
129 pass
130
131
811644b8
PP
132class GraphCanceled(Exception):
133 pass
134
135
c7eee084
PP
136class QueryExecutorCanceled(Exception):
137 pass
138
139
811644b8
PP
140class NotificationIteratorCanceled(Exception):
141 pass
142
143
144class ConnectionEnded(Exception):
145 pass
146
147
148class _ListenerHandle:
149 def __init__(self, listener_id, obj):
150 self._listener_id = listener_id
151 self._obj = obj
152
153
81447b5b
PP
154import bt2.native_bt as _native_bt
155import atexit
156
157atexit.register(_native_bt.py3_cc_exit_handler)
811644b8
PP
158version = (_native_bt.version_get_major(), _native_bt.version_get_minor(),
159 _native_bt.version_get_patch(), _native_bt.version_get_extra())
81447b5b 160_native_bt.py3_cc_init_from_bt2()
811644b8
PP
161del _native_bt
162
163try:
164 del native_bt
165except:
166 pass
This page took 0.036607 seconds and 4 git commands to generate.