Fix a few include warnings
[babeltrace.git] / include / babeltrace / graph / component.h
index 74f38345a78b73de128091aaec35bed716c408ce..9dac6dec66a117db841d56d97002e718726349bf 100644 (file)
@@ -27,6 +27,7 @@
  * SOFTWARE.
  */
 
+#include <babeltrace/graph/component-status.h>
 #include <babeltrace/graph/component-class.h>
 #include <babeltrace/graph/notification-iterator.h>
 #include <babeltrace/values.h>
@@ -42,33 +43,6 @@ 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,
-       /** No more work to be done by this component. **/
-       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,
-       /** Refuse port connection. */
-       BT_COMPONENT_STATUS_REFUSE_PORT_CONNECTION      = 3,
-       /** General error. */
-       BT_COMPONENT_STATUS_ERROR                       = -1,
-       /** Unsupported component feature. */
-       BT_COMPONENT_STATUS_UNSUPPORTED                 = -2,
-       /** Invalid arguments. */
-       BT_COMPONENT_STATUS_INVALID                     = -3,
-       /** Memory allocation failure. */
-       BT_COMPONENT_STATUS_NOMEM                       = -4,
-       /** Element not found. */
-       BT_COMPONENT_STATUS_NOT_FOUND                   = -5,
-};
-
 /**
  * Create an instance of a component from a component class.
  *
This page took 0.024379 seconds and 4 git commands to generate.