Fix: src.ctf.lttng-live: emitting stream end msg with no stream
[babeltrace.git] / include / babeltrace2 / trace-ir / field-path-const.h
index 286450fe8bb9e30f629a27a18c1a2a0bdea3e9f3..06dfe052b1067100fda31b52c3006466badc189f 100644 (file)
@@ -2,7 +2,7 @@
 #define BABELTRACE2_TRACE_IR_FIELD_PATH_CONST_H
 
 /*
- * Copyright 2016-2018 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
@@ -21,9 +21,6 @@
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  * SOFTWARE.
- *
- * The Common Trace Format (CTF) Specification is available at
- * http://www.efficios.com/ctf
  */
 
 #ifndef __BT_IN_BABELTRACE_H
@@ -32,7 +29,6 @@
 
 #include <stdint.h>
 
-/* For bt_field_path, bt_field_path_item */
 #include <babeltrace2/types.h>
 
 #ifdef __cplusplus
@@ -40,18 +36,19 @@ extern "C" {
 #endif
 
 typedef enum bt_field_path_item_type {
-       BT_FIELD_PATH_ITEM_TYPE_INDEX,
-       BT_FIELD_PATH_ITEM_TYPE_CURRENT_ARRAY_ELEMENT,
+       BT_FIELD_PATH_ITEM_TYPE_INDEX                           = 1 << 0,
+       BT_FIELD_PATH_ITEM_TYPE_CURRENT_ARRAY_ELEMENT           = 1 << 1,
+       BT_FIELD_PATH_ITEM_TYPE_CURRENT_OPTION_CONTENT          = 1 << 2,
 } bt_field_path_item_type;
 
-typedef enum bt_scope {
-       BT_SCOPE_PACKET_CONTEXT,
-       BT_SCOPE_EVENT_COMMON_CONTEXT,
-       BT_SCOPE_EVENT_SPECIFIC_CONTEXT,
-       BT_SCOPE_EVENT_PAYLOAD,
-} bt_scope;
+typedef enum bt_field_path_scope {
+       BT_FIELD_PATH_SCOPE_PACKET_CONTEXT              = 0,
+       BT_FIELD_PATH_SCOPE_EVENT_COMMON_CONTEXT        = 1,
+       BT_FIELD_PATH_SCOPE_EVENT_SPECIFIC_CONTEXT      = 2,
+       BT_FIELD_PATH_SCOPE_EVENT_PAYLOAD               = 3,
+} bt_field_path_scope;
 
-extern bt_scope bt_field_path_get_root_scope(
+extern bt_field_path_scope bt_field_path_get_root_scope(
                const bt_field_path *field_path);
 
 extern uint64_t bt_field_path_get_item_count(
This page took 0.023518 seconds and 4 git commands to generate.