bt2: make it possible to remove a trace class or trace destruction listener
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 20 Sep 2019 19:50:59 +0000 (15:50 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 25 Sep 2019 15:23:21 +0000 (11:23 -0400)
commit1114a7d5b648102b0b37febe9d0d76a97e336240
tree62089a21554aef9b100322dc5960b531082cb2de
parent7993562851b443afb3801e5bf2b88d674734808b
bt2: make it possible to remove a trace class or trace destruction listener

This patch adds the possibility to remove a previously added trace or
trace class destruction listener.  Calling
{_TraceClass,_Trace}.add_destruction_listener returns a
_ListenerHandle.  To remove the listener, the user must pass this handle
back to {_TraceClass,_Trace}.remove_destruction_listener.

Change-Id: I6020135c1e056658d941d2e022b171466c5df7b3
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2077
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/bindings/python/bt2/bt2/trace.py
src/bindings/python/bt2/bt2/trace_class.py
tests/bindings/python/bt2/test_trace.py
tests/bindings/python/bt2/test_trace_class.py
This page took 0.025499 seconds and 4 git commands to generate.