From 6331aac6bbb11df58a08d6424ad9460f1d156872 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 5 Dec 2014 20:51:30 -0500 Subject: [PATCH] Python: document CTFScope MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- bindings/python/bt.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/bindings/python/bt.py b/bindings/python/bt.py index 6091bdb9c..9714eb439 100644 --- a/bindings/python/bt.py +++ b/bindings/python/bt.py @@ -427,14 +427,33 @@ class CTFTypeId: class CTFScope: + """ + CTF scopes. + """ + + #: Packet header TRACE_PACKET_HEADER = 0 + + #: Packet context STREAM_PACKET_CONTEXT = 1 + + #: Event header STREAM_EVENT_HEADER = 2 + + #: Stream event context STREAM_EVENT_CONTEXT = 3 + + #: Event context EVENT_CONTEXT = 4 + + #: Event fields EVENT_FIELDS = 5 def scope_name(scope): + """ + Returns the name of the CTF scope *scope*. + """ + name = "UNKNOWN_SCOPE" constants = [ attr for attr in dir(CTFScope) if not callable( -- 2.34.1