X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fconnection.h;h=566d5182964d6d89862a90181b22111e7a621046;hb=73d5c1adb1411e16c9c613c38a4c74a29ee608ae;hp=60b9eef81c83a3a3080c84894e29b852bec6b6c9;hpb=bd7cc15bddddb727ea02fb44bde2d9f15cd82847;p=babeltrace.git diff --git a/include/babeltrace/graph/connection.h b/include/babeltrace/graph/connection.h index 60b9eef8..566d5182 100644 --- a/include/babeltrace/graph/connection.h +++ b/include/babeltrace/graph/connection.h @@ -27,6 +27,8 @@ * SOFTWARE. */ +#include + #ifdef __cplusplus extern "C" { #endif @@ -34,6 +36,15 @@ extern "C" { struct bt_component; struct bt_connection; +enum bt_connection_status { + BT_CONNECTION_STATUS_GRAPH_IS_CANCELED = 125, + BT_CONNECTION_STATUS_OK = 0, + BT_CONNECTION_STATUS_INVALID = -22, + BT_CONNECTION_STATUS_ERROR = -1, + BT_CONNECTION_STATUS_NOMEM = -12, + BT_CONNECTION_STATUS_IS_ENDED = 104, +}; + /* Returns the "downstream" input port. */ extern struct bt_port *bt_connection_get_downstream_port( struct bt_connection *connection);