| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright 2016-2018 Philippe Proulx <pproulx@efficios.com> |
| 5 | * |
| 6 | * The Common Trace Format (CTF) Specification is available at |
| 7 | * http://www.efficios.com/ctf |
| 8 | */ |
| 9 | |
| 10 | #ifndef BABELTRACE_TRACE_IR_RESOLVE_FIELD_PATH_INTERNAL |
| 11 | #define BABELTRACE_TRACE_IR_RESOLVE_FIELD_PATH_INTERNAL |
| 12 | |
| 13 | #include "common/macros.h" |
| 14 | #include "lib/object.h" |
| 15 | #include <babeltrace2/trace-ir/field-class.h> |
| 16 | #include <babeltrace2/trace-ir/field-path.h> |
| 17 | #include <glib.h> |
| 18 | |
| 19 | struct bt_resolve_field_path_context { |
| 20 | struct bt_field_class *packet_context; |
| 21 | struct bt_field_class *event_common_context; |
| 22 | struct bt_field_class *event_specific_context; |
| 23 | struct bt_field_class *event_payload; |
| 24 | }; |
| 25 | |
| 26 | BT_HIDDEN |
| 27 | int bt_resolve_field_paths(struct bt_field_class *field_class, |
| 28 | struct bt_resolve_field_path_context *ctx); |
| 29 | |
| 30 | #endif /* BABELTRACE_TRACE_IR_RESOLVE_FIELD_PATH_INTERNAL */ |