#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
* 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
#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 = 0,
+ BT_FIELD_PATH_ITEM_TYPE_CURRENT_ARRAY_ELEMENT = 1,
+ BT_FIELD_PATH_ITEM_TYPE_CURRENT_OPTION_CONTENT = 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(