Fix: src.ctf.lttng-live: emitting stream end msg with no stream
[babeltrace.git] / include / babeltrace2 / error-cause-const.h
index 8b4e36e06d8601df81f25d617a1c7e0f87cf544f..004741fc614fb2e938eab752bc1f3461aa2bcb67 100644 (file)
@@ -2,7 +2,7 @@
 #define BABELTRACE2_ERROR_CAUSE_CONST_H
 
 /*
- * Copyright (c) 2019 Philippe Proulx <pproulx@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
 #include <stdint.h>
 #include <stddef.h>
 
-/* For bt_error, bt_error_cause */
 #include <babeltrace2/types.h>
-
-/* For bt_component_class_type */
 #include <babeltrace2/graph/component-class-const.h>
 
 #ifdef __cplusplus
@@ -41,10 +38,10 @@ extern "C" {
 #endif
 
 typedef enum bt_error_cause_actor_type {
-       BT_ERROR_CAUSE_ACTOR_TYPE_UNKNOWN,
-       BT_ERROR_CAUSE_ACTOR_TYPE_COMPONENT,
-       BT_ERROR_CAUSE_ACTOR_TYPE_COMPONENT_CLASS,
-       BT_ERROR_CAUSE_ACTOR_TYPE_MESSAGE_ITERATOR,
+       BT_ERROR_CAUSE_ACTOR_TYPE_UNKNOWN               = 1 << 0,
+       BT_ERROR_CAUSE_ACTOR_TYPE_COMPONENT             = 1 << 1,
+       BT_ERROR_CAUSE_ACTOR_TYPE_COMPONENT_CLASS       = 1 << 2,
+       BT_ERROR_CAUSE_ACTOR_TYPE_MESSAGE_ITERATOR      = 1 << 3,
 } bt_error_cause_actor_type;
 
 extern
This page took 0.025119 seconds and 4 git commands to generate.