lib: use `enum bt_port_status` where possible
[babeltrace.git] / include / babeltrace / graph / port.h
index 7569961b8bd585f2be3385d7d9c39c32ea28c7e0..d08e27478ba9578bf71b2ba8a42402a7b569b185 100644 (file)
@@ -28,7 +28,7 @@
  */
 
 #include <stdint.h>
-#include <stdbool.h>
+#include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -53,18 +53,17 @@ extern const char *bt_port_get_name(struct bt_port *port);
 extern enum bt_port_type bt_port_get_type(struct bt_port *port);
 extern struct bt_connection *bt_port_get_connection(struct bt_port *port);
 extern struct bt_component *bt_port_get_component(struct bt_port *port);
-extern int bt_port_remove_from_component(struct bt_port *port);
-extern int bt_port_disconnect(struct bt_port *port);
-extern int bt_port_is_connected(struct bt_port *port);
+extern enum bt_port_status bt_port_disconnect(struct bt_port *port);
+extern bt_bool bt_port_is_connected(struct bt_port *port);
 
 static inline
-bool bt_port_is_input(struct bt_port *port)
+bt_bool bt_port_is_input(struct bt_port *port)
 {
        return bt_port_get_type(port) == BT_PORT_TYPE_INPUT;
 }
 
 static inline
-bool bt_port_is_output(struct bt_port *port)
+bt_bool bt_port_is_output(struct bt_port *port)
 {
        return bt_port_get_type(port) == BT_PORT_TYPE_OUTPUT;
 }
This page took 0.0357 seconds and 4 git commands to generate.