lib: remove "unknown clock snapshot" concept
[babeltrace.git] / include / babeltrace / graph / self-component-port.h
index 4a79409b587f1df57a134be55e122dac2058cd71..c524cac30eaa5f1a6f10086c99e51385f11d79c8 100644 (file)
@@ -24,7 +24,8 @@
  */
 
 /*
- * For bt_port, bt_self_component_port, bt_self_component, bt_connection
+ * For bt_port, bt_self_component_port, bt_self_component,
+ * bt_connection, __BT_UPCAST_CONST
  */
 #include <babeltrace/types.h>
 
 extern "C" {
 #endif
 
-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 bt_port *bt_self_component_port_as_port(
                bt_self_component_port *self_port)
 {
-       return (const void *) self_port;
+       return __BT_UPCAST_CONST(bt_port, self_port);
 }
 
 extern bt_self_component *bt_self_component_port_borrow_component(
                bt_self_component_port *self_port);
 
-extern enum bt_self_component_port_status
-bt_self_component_port_remove_from_component(
-               bt_self_component_port *self_port);
-
 extern void *bt_self_component_port_get_data(
                const bt_self_component_port *self_port);
 
This page took 0.026308 seconds and 4 git commands to generate.