bt2: make Graph add listener methods return None
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 20 Nov 2019 20:29:42 +0000 (15:29 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 21 Nov 2019 15:57:46 +0000 (10:57 -0500)
commit2d37d7fd830af46ef9816ffceeaa2426a0a3284e
tree9f46ad57ceedb97cf36fafe4bf43ae2bcbab91a1
parentb1df972d4e6c35e54562fa27083632514d38d354
bt2: make Graph add listener methods return None

The methods add_ports_connected_listener and add_port_added_listener of
bt2.Graph currently return a _ListenerHandle object.  This is not useful
today, since it's not possible to remove those listeners (unlike trace
class and trace destruction listeners).

Make them not return a handle for now.  It will be possible to make them
return a handle again if/when we add the possibility to remove those
listeners.

Change-Id: I5ea1c9d8793232c2f7077b5c2b82797438066d13
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2424
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/bindings/python/bt2/bt2/graph.py
This page took 0.025192 seconds and 4 git commands to generate.