Make bt_private_connection_create_notification_iterator() return a status code
[babeltrace.git] / include / babeltrace / graph / connection.h
index 60b9eef81c83a3a3080c84894e29b852bec6b6c9..566d5182964d6d89862a90181b22111e7a621046 100644 (file)
@@ -27,6 +27,8 @@
  * SOFTWARE.
  */
 
+#include <babeltrace/types.h>
+
 #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);
This page took 0.023824 seconds and 4 git commands to generate.