projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add graph cancellation API
[babeltrace.git]
/
include
/
babeltrace
/
graph
/
graph.h
diff --git
a/include/babeltrace/graph/graph.h
b/include/babeltrace/graph/graph.h
index cb14c7daa2c74e6a63dffa93b0f764112bc7a20c..b89aaa82b57d03b28c13318707cc4f78aacfd452 100644
(file)
--- a/
include/babeltrace/graph/graph.h
+++ b/
include/babeltrace/graph/graph.h
@@
-28,6
+28,7
@@
*/
#include <babeltrace/graph/component.h>
*/
#include <babeltrace/graph/component.h>
+#include <babeltrace/types.h>
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-50,6
+51,8
@@
enum bt_graph_status {
BT_GRAPH_STATUS_NO_SINK = -6,
/** General error. */
BT_GRAPH_STATUS_ERROR = -1,
BT_GRAPH_STATUS_NO_SINK = -6,
/** General error. */
BT_GRAPH_STATUS_ERROR = -1,
+ /** Canceled. */
+ BT_GRAPH_STATUS_CANCELED = -125,
};
typedef void (*bt_graph_port_added_listener)(struct bt_port *port,
};
typedef void (*bt_graph_port_added_listener)(struct bt_port *port,
@@
-114,6
+117,9
@@
extern enum bt_graph_status bt_graph_add_ports_disconnected_listener(
struct bt_graph *graph,
bt_graph_ports_disconnected_listener listener, void *data);
struct bt_graph *graph,
bt_graph_ports_disconnected_listener listener, void *data);
+extern enum bt_graph_status bt_graph_cancel(struct bt_graph *graph);
+extern bt_bool bt_graph_is_canceled(struct bt_graph *graph);
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif
This page took
0.026724 seconds
and
4
git commands to generate.