lib: rename plural file names to singular
[babeltrace.git] / include / babeltrace / graph / self-component-port.h
index 753cba54934a92b7e9c711ef4ee091620a8b0d59..49c5380a5463cab7c3301c2e7b6853421d3e1d91 100644 (file)
@@ -34,14 +34,13 @@ struct bt_connection;
 
 enum bt_self_component_port_status {
        BT_SELF_PORT_STATUS_OK = 0,
-       BT_SELF_PORT_STATUS_ERROR = -1,
 };
 
 static inline
-struct bt_port *bt_self_component_port_borrow_port(
+const struct bt_port *bt_self_component_port_as_port(
                struct bt_self_component_port *self_port)
 {
-       return (void *) self_port;
+       return (const void *) self_port;
 }
 
 extern struct bt_self_component *bt_self_component_port_borrow_component(
@@ -52,7 +51,7 @@ bt_self_component_port_remove_from_component(
                struct bt_self_component_port *self_port);
 
 extern void *bt_self_component_port_get_data(
-               struct bt_self_component_port *self_port);
+               const struct bt_self_component_port *self_port);
 
 #ifdef __cplusplus
 }
This page took 0.024079 seconds and 4 git commands to generate.