From: Philippe Proulx Date: Tue, 24 Jan 2017 17:44:49 +0000 (-0500) Subject: Move enum bt_component_type to component.h X-Git-Tag: v2.0.0-pre1~545 X-Git-Url: https://git.efficios.com/?a=commitdiff_plain;h=d1b057f5b2954339b0b48fdc5973ec59a641f5a9;p=babeltrace.git Move enum bt_component_type to component.h enum bt_component_type starts with bt_component, thus it belongs to component.h. Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/include/babeltrace/component/component-class.h b/include/babeltrace/component/component-class.h index d12a1202..c3359fe2 100644 --- a/include/babeltrace/component/component-class.h +++ b/include/babeltrace/component/component-class.h @@ -31,22 +31,6 @@ 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, -}; - struct bt_plugin; struct bt_component_class; diff --git a/include/babeltrace/component/component.h b/include/babeltrace/component/component.h index 7a1464fd..2645c13c 100644 --- a/include/babeltrace/component/component.h +++ b/include/babeltrace/component/component.h @@ -35,6 +35,22 @@ 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. */