Move enum bt_component_type to component.h
[babeltrace.git] / include / babeltrace / component / component.h
index 7a1464fd2206937e62cd86f2fa377dc50abcae6a..2645c13c45f6f1f7889d85f17053f2da0b521bb3 100644 (file)
 extern "C" {
 #endif
 
+/**
+ * Component type.
+ */
+enum bt_component_type {
+       BT_COMPONENT_TYPE_UNKNOWN =     -1,
+
+       /** A source component is a notification generator. */
+       BT_COMPONENT_TYPE_SOURCE =      0,
+
+       /** A sink component handles incoming notifications. */
+       BT_COMPONENT_TYPE_SINK =        1,
+
+       /** A filter component implements both Source and Sink interfaces. */
+       BT_COMPONENT_TYPE_FILTER =      2,
+};
+
 /**
  * Status code. Errors are always negative.
  */
This page took 0.03122 seconds and 4 git commands to generate.