From d1b057f5b2954339b0b48fdc5973ec59a641f5a9 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 24 Jan 2017 12:44:49 -0500 Subject: [PATCH] Move enum bt_component_type to component.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- include/babeltrace/component/component-class.h | 16 ---------------- include/babeltrace/component/component.h | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) 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. */ -- 2.34.1