projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: Mass field_types -> field_class rename
[babeltrace.git]
/
bindings
/
python
/
bt2
/
bt2
/
trace.py
diff --git
a/bindings/python/bt2/bt2/trace.py
b/bindings/python/bt2/bt2/trace.py
index cd0cd14b96cb46fed8cd50c1d5e1a40f1ce6a4c5..31548d6b2c6b9e6c2033db96ddbb7a0d51deac69 100644
(file)
--- a/
bindings/python/bt2/bt2/trace.py
+++ b/
bindings/python/bt2/bt2/trace.py
@@
-21,7
+21,7
@@
# THE SOFTWARE.
from bt2 import native_bt, object, utils
# THE SOFTWARE.
from bt2 import native_bt, object, utils
-import bt2.field_
type
s
+import bt2.field_
clas
s
import collections.abc
import bt2.values
import bt2.stream
import collections.abc
import bt2.values
import bt2.stream
@@
-162,7
+162,7
@@
class _TraceEnv(collections.abc.MutableMapping):
class Trace(object._Object, collections.abc.Mapping):
def __init__(self, name=None, native_byte_order=None, env=None,
class Trace(object._Object, collections.abc.Mapping):
def __init__(self, name=None, native_byte_order=None, env=None,
- packet_header_field_
type
=None, clock_classes=None,
+ packet_header_field_
class
=None, clock_classes=None,
stream_classes=None):
ptr = native_bt.trace_create()
stream_classes=None):
ptr = native_bt.trace_create()
@@
-177,8
+177,8
@@
class Trace(object._Object, collections.abc.Mapping):
if native_byte_order is not None:
self.native_byte_order = native_byte_order
if native_byte_order is not None:
self.native_byte_order = native_byte_order
- if packet_header_field_
type
is not None:
- self.packet_header_field_
type = packet_header_field_type
+ if packet_header_field_
class
is not None:
+ self.packet_header_field_
class = packet_header_field_class
if env is not None:
for key, value in env.items():
if env is not None:
for key, value in env.items():
@@
-263,25
+263,25
@@
class Trace(object._Object, collections.abc.Mapping):
return _TraceStreams(self)
@property
return _TraceStreams(self)
@property
- def packet_header_field_
type
(self):
- f
t
_ptr = native_bt.trace_get_packet_header_type(self._ptr)
+ def packet_header_field_
class
(self):
+ f
c
_ptr = native_bt.trace_get_packet_header_type(self._ptr)
- if f
t
_ptr is None:
+ if f
c
_ptr is None:
return
return
- return bt2.field_
types._create_from_ptr(ft
_ptr)
+ return bt2.field_
class._create_from_ptr(fc
_ptr)
- @packet_header_field_
type
.setter
- def packet_header_field_
type(self, packet_header_field_type
):
- packet_header_field_
type
_ptr = None
+ @packet_header_field_
class
.setter
+ def packet_header_field_
class(self, packet_header_field_class
):
+ packet_header_field_
class
_ptr = None
- if packet_header_field_
type
is not None:
- utils._check_type(packet_header_field_
type, bt2.field_types._FieldType
)
- packet_header_field_
type_ptr = packet_header_field_type
._ptr
+ if packet_header_field_
class
is not None:
+ utils._check_type(packet_header_field_
class, bt2.field_class._FieldClass
)
+ packet_header_field_
class_ptr = packet_header_field_class
._ptr
ret = native_bt.trace_set_packet_header_type(self._ptr,
ret = native_bt.trace_set_packet_header_type(self._ptr,
- packet_header_field_
type
_ptr)
- utils._handle_ret(ret, "cannot set trace class object's packet header field
type
")
+ packet_header_field_
class
_ptr)
+ utils._handle_ret(ret, "cannot set trace class object's packet header field
class
")
def __eq__(self, other):
if type(other) is not type(self):
def __eq__(self, other):
if type(other) is not type(self):
@@
-303,7
+303,7
@@
class Trace(object._Object, collections.abc.Mapping):
self_env,
self.name,
self.native_byte_order,
self_env,
self.name,
self.native_byte_order,
- self.packet_header_field_
type
,
+ self.packet_header_field_
class
,
)
other_props = (
other_stream_classes,
)
other_props = (
other_stream_classes,
@@
-311,7
+311,7
@@
class Trace(object._Object, collections.abc.Mapping):
other_env,
other.name,
other.native_byte_order,
other_env,
other.name,
other.native_byte_order,
- other.packet_header_field_
type
,
+ other.packet_header_field_
class
,
)
return self_props == other_props
)
return self_props == other_props
@@
-321,7
+321,7
@@
class Trace(object._Object, collections.abc.Mapping):
if self.name is not None:
cpy.name = self.name
if self.name is not None:
cpy.name = self.name
- cpy.packet_header_field_
type = gen_copy_func(self.packet_header_field_type
)
+ cpy.packet_header_field_
class = gen_copy_func(self.packet_header_field_class
)
for key, val in self.env.items():
cpy.env[key] = gen_copy_func(val)
for key, val in self.env.items():
cpy.env[key] = gen_copy_func(val)
This page took
0.024524 seconds
and
4
git commands to generate.