Add graph event listeners
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 25 Mar 2017 05:27:24 +0000 (01:27 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:38 +0000 (12:57 -0400)
commit1bf957a039dfe5a1cd00659779fdb004aacd706b
treea5fed523e024e9d77618f527930fb693135cc6d0
parent72b913fbad1753b5b122bfb54c1e7936eaf9d0ef
Add graph event listeners

With this patch you can add event listeners to a graph:

* Port added to a graph's component. Note that this is only called when
  the component belongs to a graph. It is not called for existing ports
  when the component becomes part of a graph (with bt_graph_connect()).
* Port removed from a graph's component.
* Graph component's port connected.
* Graph component's port disconnected.

All those listeners return `void` because they cannot "fail". In the
worst case they should just abort. Another way would be to set a flag
at some place and read it once you have called bt_graph_run() or
bt_graph_consume().

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/component/graph-internal.h
include/babeltrace/component/graph.h
lib/component/component.c
lib/component/connection.c
lib/component/graph.c
This page took 0.026427 seconds and 4 git commands to generate.