Allow a component to remove a port and any user to disconnect one
[babeltrace.git] / include / babeltrace / component / component.h
index 0d3e355ac75e7c3b676f2f7eabc644f6ee9e0960..0a2f70d7579735d58be3de9e7fa642318900ba56 100644 (file)
@@ -40,30 +40,33 @@ struct bt_component_class;
 struct bt_component_graph;
 struct bt_component;
 struct bt_value;
+struct bt_port;
 
 /**
  * Status code. Errors are always negative.
  */
 enum bt_component_status {
        /** No error, okay. */
-       BT_COMPONENT_STATUS_OK =                0,
+       BT_COMPONENT_STATUS_OK                          = 0,
        /** No more work to be done by this component. **/
-       BT_COMPONENT_STATUS_END =               1,
+       BT_COMPONENT_STATUS_END                         = 1,
        /**
         * Component can't process a notification at this time
         * (e.g. would block), try again later.
         */
-       BT_COMPONENT_STATUS_AGAIN =             2,
+       BT_COMPONENT_STATUS_AGAIN                       = 2,
+       /** Refuse port connection. */
+       BT_COMPONENT_STATUS_REFUSE_PORT_CONNECTION      = 3,
        /** General error. */
-       BT_COMPONENT_STATUS_ERROR =             -1,
+       BT_COMPONENT_STATUS_ERROR                       = -1,
        /** Unsupported component feature. */
-       BT_COMPONENT_STATUS_UNSUPPORTED =       -2,
+       BT_COMPONENT_STATUS_UNSUPPORTED                 = -2,
        /** Invalid arguments. */
-       BT_COMPONENT_STATUS_INVALID =           -3,
+       BT_COMPONENT_STATUS_INVALID                     = -3,
        /** Memory allocation failure. */
-       BT_COMPONENT_STATUS_NOMEM =             -4,
+       BT_COMPONENT_STATUS_NOMEM                       = -4,
        /** Element not found. */
-       BT_COMPONENT_STATUS_NOT_FOUND =         -5,
+       BT_COMPONENT_STATUS_NOT_FOUND                   = -5,
 };
 
 /**
This page took 0.023827 seconds and 4 git commands to generate.