Fix: src.ctf.lttng-live: emitting stream end msg with no stream
[babeltrace.git] / include / babeltrace2 / graph / component-class-const.h
index e68c572dfa7ada7b7c768dd6d28518e3a74e8129..da46d290cbfa6eaac47920bcbf0348eaea1e9234 100644 (file)
@@ -2,8 +2,7 @@
 #define BABELTRACE2_GRAPH_COMPONENT_CLASS_CONST_H
 
 /*
- * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
- * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * 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
  * SOFTWARE.
  */
 
-/* For bt_bool, bt_component_class */
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <babeltrace2/types.h>
 
 #ifdef __cplusplus
@@ -32,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(
This page took 0.025303 seconds and 4 git commands to generate.