lib: make message iterator creation functions return a status
[babeltrace.git] / include / babeltrace2 / error-cause-const.h
index 472d53793f034164ae4b58b5eeb5dff9f25fae10..6771b0ad18efd7e4500b1ddeb0b8a9783cf33a25 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef BABELTRACE_ERROR_CAUSE_CONST_H
-#define BABELTRACE_ERROR_CAUSE_CONST_H
+#ifndef BABELTRACE2_ERROR_CAUSE_CONST_H
+#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
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #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
@@ -37,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               = 0,
+       BT_ERROR_CAUSE_ACTOR_TYPE_COMPONENT             = 1,
+       BT_ERROR_CAUSE_ACTOR_TYPE_COMPONENT_CLASS       = 2,
+       BT_ERROR_CAUSE_ACTOR_TYPE_MESSAGE_ITERATOR      = 3,
 } bt_error_cause_actor_type;
 
 extern
@@ -113,4 +114,4 @@ const char *bt_error_cause_message_iterator_actor_get_plugin_name(
 }
 #endif
 
-#endif /* BABELTRACE_ERROR_CAUSE_CONST_H */
+#endif /* BABELTRACE2_ERROR_CAUSE_CONST_H */
This page took 0.026038 seconds and 4 git commands to generate.