ir: add internal field path getters
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 27 Jul 2015 12:40:33 +0000 (08:40 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 29 Jul 2015 17:20:30 +0000 (13:20 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event-types.c
include/babeltrace/ctf-ir/event-types-internal.h

index 450f8d58d219f8e3e6f083c32c20363feadc46d6..9d2bd39b0a108b8239ba9b649f9cb38e19ae16f4 100644 (file)
@@ -2221,6 +2221,18 @@ end:
        return ret;
 }
 
+BT_HIDDEN
+struct bt_ctf_field_path *bt_ctf_field_type_sequence_get_length_field_path(
+               struct bt_ctf_field_type *type)
+{
+       struct bt_ctf_field_type_sequence *sequence;
+
+       sequence = container_of(type, struct bt_ctf_field_type_sequence,
+               parent);
+
+       return sequence->length_field_path;
+}
+
 BT_HIDDEN
 int bt_ctf_field_type_variant_set_tag_field_path(struct bt_ctf_field_type *type,
                struct bt_ctf_field_path *path)
@@ -2243,6 +2255,18 @@ end:
        return ret;
 }
 
+BT_HIDDEN
+struct bt_ctf_field_path *bt_ctf_field_type_variant_get_tag_field_path(
+               struct bt_ctf_field_type *type)
+{
+       struct bt_ctf_field_type_variant *variant;
+
+       variant = container_of(type, struct bt_ctf_field_type_variant,
+               parent);
+
+       return variant->tag_path;
+}
+
 BT_HIDDEN
 int bt_ctf_field_type_variant_set_tag(struct bt_ctf_field_type *type,
                struct bt_ctf_field_type *tag)
index d5290f575cda586d10cefdb1e44670e891610b97..3adae33118f7d4f89d63b3758ef430178e316c9f 100644 (file)
@@ -216,10 +216,18 @@ 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(struct bt_ctf_field_type *type,
                struct bt_ctf_field_type *tag);
This page took 0.026764 seconds and 4 git commands to generate.