X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fcomponent%2Fgraph-internal.h;h=0084628af5bd987e5ebafd571f0cc28c35d90056;hb=1bf957a039dfe5a1cd00659779fdb004aacd706b;hp=7da6255fa92fdda33efe1534ea01b8f2e63f7d62;hpb=72b913fbad1753b5b122bfb54c1e7936eaf9d0ef;p=babeltrace.git diff --git a/include/babeltrace/component/graph-internal.h b/include/babeltrace/component/graph-internal.h index 7da6255f..0084628a 100644 --- a/include/babeltrace/component/graph-internal.h +++ b/include/babeltrace/component/graph-internal.h @@ -32,6 +32,9 @@ #include #include +struct bt_component; +struct bt_port; + struct bt_graph { /** * A component graph contains components and point-to-point connection @@ -51,6 +54,28 @@ struct bt_graph { GPtrArray *components; /* Queue of pointers (weak references) to sink bt_components. */ GQueue *sinks_to_consume; + + struct { + GArray *port_added; + GArray *port_removed; + GArray *port_connected; + GArray *port_disconnected; + } listeners; }; +BT_HIDDEN +void bt_graph_notify_port_added(struct bt_graph *graph, struct bt_port *port); + +BT_HIDDEN +void bt_graph_notify_port_removed(struct bt_graph *graph, + struct bt_component *comp, struct bt_port *port); + +BT_HIDDEN +void bt_graph_notify_port_connected(struct bt_graph *graph, + struct bt_port *port); + +BT_HIDDEN +void bt_graph_notify_port_disconnected(struct bt_graph *graph, + struct bt_component *comp, struct bt_port *port); + #endif /* BABELTRACE_COMPONENT_COMPONENT_GRAPH_INTERNAL_H */