2 * SPDX-License-Identifier: MIT
4 * Copyright 2016 Philippe Proulx <pproulx@efficios.com>
6 * The Common Trace Format (CTF) Specification is available at
7 * http://www.efficios.com/ctf
10 #ifndef BABELTRACE_CTF_WRITER_FIELD_PATH_INTERNAL
11 #define BABELTRACE_CTF_WRITER_FIELD_PATH_INTERNAL
13 #include "common/common.h"
14 #include "common/assert.h"
15 #include "common/macros.h"
16 #include <babeltrace2-ctf-writer/field-types.h>
21 struct bt_ctf_field_path
{
22 struct bt_ctf_object base
;
23 enum bt_ctf_scope root
;
26 * Array of integers (int) indicating the index in either
27 * structures, variants, arrays, or sequences that make up
28 * the path to a field type. -1 means the "current element
29 * of an array or sequence type".
35 struct bt_ctf_field_path
*bt_ctf_field_path_create(void);
38 void bt_ctf_field_path_clear(struct bt_ctf_field_path
*field_path
);
41 struct bt_ctf_field_path
*bt_ctf_field_path_copy(
42 struct bt_ctf_field_path
*path
);
44 BT_HIDDEN
enum bt_ctf_scope
bt_ctf_field_path_get_root_scope(
45 const struct bt_ctf_field_path
*field_path
);
47 BT_HIDDEN
int64_t bt_ctf_field_path_get_index_count(
48 const struct bt_ctf_field_path
*field_path
);
50 BT_HIDDEN
int bt_ctf_field_path_get_index(
51 const struct bt_ctf_field_path
*field_path
, uint64_t index
);
53 #endif /* BABELTRACE_CTF_WRITER_FIELD_PATH_INTERNAL */
This page took 0.031793 seconds and 4 git commands to generate.