X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Fgraph%2Fcomponent-class-const.h;h=da46d290cbfa6eaac47920bcbf0348eaea1e9234;hb=1cda4ff4025e4b3f7bd2a861baa51d2113c4cbf9;hp=250b07624be4822f0014859be63a98c28d568491;hpb=4fa90f321f51af8f5bfc48eee1435e2f41d853b3;p=babeltrace.git diff --git a/include/babeltrace2/graph/component-class-const.h b/include/babeltrace2/graph/component-class-const.h index 250b0762..da46d290 100644 --- a/include/babeltrace2/graph/component-class-const.h +++ b/include/babeltrace2/graph/component-class-const.h @@ -2,8 +2,7 @@ #define BABELTRACE2_GRAPH_COMPONENT_CLASS_CONST_H /* - * Copyright 2017-2018 Philippe Proulx - * Copyright 2016 Jérémie Galarneau + * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -28,7 +27,6 @@ # error "Please include instead." #endif -/* For bt_bool, bt_component_class */ #include #ifdef __cplusplus @@ -36,9 +34,9 @@ extern "C" { #endif typedef enum bt_component_class_type { - BT_COMPONENT_CLASS_TYPE_SOURCE = 0, - BT_COMPONENT_CLASS_TYPE_FILTER = 1, - BT_COMPONENT_CLASS_TYPE_SINK = 2, + BT_COMPONENT_CLASS_TYPE_SOURCE = 1 << 0, + BT_COMPONENT_CLASS_TYPE_FILTER = 1 << 1, + BT_COMPONENT_CLASS_TYPE_SINK = 1 << 2, } bt_component_class_type; extern const char *bt_component_class_get_name(