Python: bt: do not expose ClockType
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 6 Dec 2014 00:42:06 +0000 (19:42 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 13 Feb 2015 17:13:23 +0000 (12:13 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bindings/python/bt.py

index 047e2f003969e54f921cef802d768e21a8a384ca..7605b5a74c7d985105afadb6403a3da6fb94d562 100644 (file)
@@ -220,7 +220,7 @@ def print_format_list(babeltrace_file):
 
 
 # Based on enum bt_clock_type in clock-type.h
-class ClockType:
+class _ClockType:
     CLOCK_CYCLES = 0
     CLOCK_REAL = 1
 
@@ -257,7 +257,7 @@ class TraceHandle:
 
         return nbt._bt_trace_handle_get_timestamp_begin(self._trace_collection._tc,
                                                         self._id,
-                                                        ClockType.CLOCK_REAL)
+                                                        _ClockType.CLOCK_REAL)
 
     @property
     def timestamp_end(self):
@@ -265,7 +265,7 @@ class TraceHandle:
 
         return nbt._bt_trace_handle_get_timestamp_end(self._trace_collection._tc,
                                                       self._id,
-                                                      ClockType.CLOCK_REAL)
+                                                      _ClockType.CLOCK_REAL)
 
     @property
     def events(self):
This page took 0.026611 seconds and 4 git commands to generate.