lib: fully configure graph (add components, connect ports), then run
[babeltrace.git] / include / babeltrace / graph / self-component-port.h
index 7af4102a0f404b6a2961c0342e6f6fb26c04ff99..ad5daeb8cf52917a4486b92555e8b94b2622ba06 100644 (file)
  * SOFTWARE.
  */
 
+/*
+ * For bt_port, bt_self_component_port, bt_self_component, bt_connection
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_port;
-struct bt_self_component_port;
-struct bt_self_component;
-struct bt_connection;
-
-enum bt_self_component_port_status {
+typedef enum bt_self_component_port_status {
        BT_SELF_PORT_STATUS_OK = 0,
-};
+} bt_self_component_port_status;
 
 static inline
-const struct bt_port *bt_self_component_port_as_port(
-               struct bt_self_component_port *self_port)
+const bt_port *bt_self_component_port_as_port(
+               bt_self_component_port *self_port)
 {
        return (const void *) self_port;
 }
 
-extern struct bt_self_component *bt_self_component_port_borrow_component(
-               struct bt_self_component_port *self_port);
-
-extern enum bt_self_component_port_status
-bt_self_component_port_remove_from_component(
-               struct bt_self_component_port *self_port);
+extern bt_self_component *bt_self_component_port_borrow_component(
+               bt_self_component_port *self_port);
 
 extern void *bt_self_component_port_get_data(
-               const struct bt_self_component_port *self_port);
+               const bt_self_component_port *self_port);
 
 #ifdef __cplusplus
 }
This page took 0.027348 seconds and 4 git commands to generate.