port.{h,c}: use `bt_bool` instead of `int` where appropriate
[babeltrace.git] / include / babeltrace / graph / port.h
index 7569961b8bd585f2be3385d7d9c39c32ea28c7e0..3dd40381b95453bf210c85197d559a3dab6302c5 100644 (file)
@@ -28,7 +28,7 @@
  */
 
 #include <stdint.h>
-#include <stdbool.h>
+#include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -55,16 +55,16 @@ 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 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.024847 seconds and 4 git commands to generate.