lib: add internal object pool API and use it; adapt plugins/tests
[babeltrace.git] / include / babeltrace / graph / connection.h
index 4fe1d4c31052c03b9395d91523082619bd269102..bf10eb5d30c7eb60561492c953ceb066869fca33 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_COMPONENT_CONNECTION_H
-#define BABELTRACE_COMPONENT_CONNECTION_H
+#ifndef BABELTRACE_GRAPH_CONNECTION_H
+#define BABELTRACE_GRAPH_CONNECTION_H
 
 /*
  * BabelTrace - Babeltrace Component Connection Interface
@@ -27,6 +27,9 @@
  * SOFTWARE.
  */
 
+/* For bt_bool */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -34,6 +37,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);
@@ -41,8 +53,10 @@ extern struct bt_port *bt_connection_get_downstream_port(
 extern struct bt_port *bt_connection_get_upstream_port(
                struct bt_connection *connection);
 
+extern bt_bool bt_connection_is_ended(struct bt_connection *connection);
+
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* BABELTRACE_COMPONENT_CONNECTION_H */
+#endif /* BABELTRACE_GRAPH_CONNECTION_H */
This page took 0.025289 seconds and 4 git commands to generate.