ir: add public bt_ctf_field_path object
[babeltrace.git] / include / babeltrace / ctf-ir / event-types-internal.h
index a4ccd2e8b76613999b756fa6d4c1c11b33ffe38a..8eaaeb88e8cda89d083fe6cf91fe42bcf72ec03d 100644 (file)
@@ -41,29 +41,6 @@ typedef void (*type_freeze_func)(struct bt_ctf_field_type *);
 typedef int (*type_serialize_func)(struct bt_ctf_field_type *,
                struct metadata_context *);
 
-enum bt_ctf_node {
-       CTF_NODE_UNKNOWN = -1,
-       CTF_NODE_ENV = 0,
-       CTF_NODE_TRACE_PACKET_HEADER = 1,
-       CTF_NODE_STREAM_PACKET_CONTEXT = 2,
-       CTF_NODE_STREAM_EVENT_HEADER = 3,
-       CTF_NODE_STREAM_EVENT_CONTEXT = 4,
-       CTF_NODE_EVENT_CONTEXT = 5,
-       CTF_NODE_EVENT_FIELDS = 6,
-};
-
-struct bt_ctf_field_path {
-       enum bt_ctf_node root;
-
-       /*
-        * Array of integers (int) indicating the index in either
-        * structures, variants, arrays, or sequences that make up
-        * the path to a field type. -1 means the "current element
-        * of an array or sequence type".
-        */
-       GArray *path_indexes;
-};
-
 struct bt_ctf_field_type {
        struct bt_object base;
        struct bt_declaration *declaration;
@@ -155,7 +132,7 @@ struct bt_ctf_field_type_variant {
        struct bt_ctf_field_type parent;
        GString *tag_name;
        struct bt_ctf_field_type_enumeration *tag;
-       struct bt_ctf_field_path *tag_path;
+       struct bt_ctf_field_path *tag_field_path;
        GHashTable *field_name_to_index;
        GPtrArray *fields; /* Array of pointers to struct structure_field */
        struct declaration_variant declaration;
@@ -219,19 +196,6 @@ BT_HIDDEN
 struct bt_ctf_field_type *bt_ctf_field_type_copy(
                struct bt_ctf_field_type *type);
 
-BT_HIDDEN
-struct bt_ctf_field_path *bt_ctf_field_path_create(void);
-
-BT_HIDDEN
-void bt_ctf_field_path_clear(struct bt_ctf_field_path *field_path);
-
-BT_HIDDEN
-struct bt_ctf_field_path *bt_ctf_field_path_copy(
-               struct bt_ctf_field_path *path);
-
-BT_HIDDEN
-void bt_ctf_field_path_destroy(struct bt_ctf_field_path *path);
-
 BT_HIDDEN
 int bt_ctf_field_type_structure_get_field_name_index(
                struct bt_ctf_field_type *structure, const char *name);
@@ -251,18 +215,10 @@ int bt_ctf_field_type_sequence_set_length_field_path(
                struct bt_ctf_field_type *type,
                struct bt_ctf_field_path *path);
 
-BT_HIDDEN
-struct bt_ctf_field_path *bt_ctf_field_type_sequence_get_length_field_path(
-               struct bt_ctf_field_type *type);
-
 BT_HIDDEN
 int bt_ctf_field_type_variant_set_tag_field_path(struct bt_ctf_field_type *type,
                struct bt_ctf_field_path *path);
 
-BT_HIDDEN
-struct bt_ctf_field_path *bt_ctf_field_type_variant_get_tag_field_path(
-               struct bt_ctf_field_type *type);
-
 BT_HIDDEN
 int bt_ctf_field_type_variant_set_tag_field_type(struct bt_ctf_field_type *type,
                struct bt_ctf_field_type *tag_type);
This page took 0.024391 seconds and 4 git commands to generate.