Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bt2/native_btversion.i \
bt2/clock_class_priority_map.py \
bt2/clock_class.py \
bt2/native_btversion.i \
bt2/clock_class_priority_map.py \
bt2/clock_class.py \
bt2/component.py \
bt2/connection.py \
bt2/ctf_writer.py \
bt2/component.py \
bt2/connection.py \
bt2/ctf_writer.py \
import uuid as uuidp
import numbers
import bt2
import uuid as uuidp
import numbers
import bt2
+import bt2.clock_value as clock_value
class ClockClassOffset:
def __init__(self, seconds=0, cycles=0):
class ClockClassOffset:
def __init__(self, seconds=0, cycles=0):
utils._handle_ret(ret, "cannot set clock class object's UUID")
def __call__(self, cycles):
utils._handle_ret(ret, "cannot set clock class object's UUID")
def __call__(self, cycles):
- return _ClockValue(self._ptr, cycles)
+ return clock_value._ClockValue(self._ptr, cycles)
def clock_class(self):
ptr = native_bt.ctf_clock_value_get_class(self._ptr)
assert(ptr)
def clock_class(self):
ptr = native_bt.ctf_clock_value_get_class(self._ptr)
assert(ptr)
- return ClockClass._create_from_ptr(ptr)
+ return bt2.ClockClass._create_from_ptr(ptr)
@property
def cycles(self):
@property
def cycles(self):
import bt2.packet
import bt2.stream
import bt2.fields
import bt2.packet
import bt2.stream
import bt2.fields
import numbers
import copy
import abc
import numbers
import copy
import abc
if clock_value_ptr is None:
return
if clock_value_ptr is None:
return
- clock_value = bt2.clock_class._create_clock_value_from_ptr(clock_value_ptr)
+ clock_value = bt2.clock_value._create_clock_value_from_ptr(clock_value_ptr)
return clock_value
def add_clock_value(self, clock_value):
return clock_value
def add_clock_value(self, clock_value):
- utils._check_type(clock_value, bt2.clock_class._ClockValue)
+ utils._check_type(clock_value, bt2.clock_value._ClockValue)
ret = native_bt.ctf_event_set_clock_value(self._ptr,
clock_value._ptr)
utils._handle_ret(ret, "cannot set event object's clock value")
ret = native_bt.ctf_event_set_clock_value(self._ptr,
clock_value._ptr)
utils._handle_ret(ret, "cannot set event object's clock value")
from bt2 import native_bt, object, utils
import bt2.clock_class_priority_map
from bt2 import native_bt, object, utils
import bt2.clock_class_priority_map
import bt2.packet
import bt2.stream
import bt2.event
import bt2.packet
import bt2.stream
import bt2.event
if clock_value_ptr is None:
return
if clock_value_ptr is None:
return
- clock_value = bt2.clock_class._create_clock_value_from_ptr(clock_value_ptr)
+ clock_value = bt2.clock_value._create_clock_value_from_ptr(clock_value_ptr)
return clock_value
def add_clock_value(self, clock_value):
return clock_value
def add_clock_value(self, clock_value):
- utils._check_type(clock_value, bt2.clock_class._ClockValue)
+ utils._check_type(clock_value, bt2.clock_value._ClockValue)
ret = native_bt.notification_inactivity_set_clock_value(self._ptr,
clock_value._ptr)
utils._handle_ret(ret, "cannot set inactivity notification object's clock value")
ret = native_bt.notification_inactivity_set_clock_value(self._ptr,
clock_value._ptr)
utils._handle_ret(ret, "cannot set inactivity notification object's clock value")
if clock_value_ptr is None:
return
if clock_value_ptr is None:
return
- clock_value = bt2.clock_class._create_clock_value_from_ptr(clock_value_ptr)
+ clock_value = bt2.clock_value._create_clock_value_from_ptr(clock_value_ptr)
return clock_value
@property
return clock_value
@property
if clock_value_ptr is None:
return
if clock_value_ptr is None:
return
- clock_value = bt2.clock_class._create_clock_value_from_ptr(clock_value_ptr)
+ clock_value = bt2.clock_value._create_clock_value_from_ptr(clock_value_ptr)
if clock_value_ptr is None:
return
if clock_value_ptr is None:
return
- clock_value = bt2.clock_class._create_clock_value_from_ptr(clock_value_ptr)
+ clock_value = bt2.clock_value._create_clock_value_from_ptr(clock_value_ptr)
return clock_value
@property
return clock_value
@property
if clock_value_ptr is None:
return
if clock_value_ptr is None:
return
- clock_value = bt2.clock_class._create_clock_value_from_ptr(clock_value_ptr)
+ clock_value = bt2.clock_value._create_clock_value_from_ptr(clock_value_ptr)