ir: add internal bt_ctf_field_path_clear()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 8 Feb 2016 07:11:20 +0000 (02:11 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 19 Feb 2016 20:15:48 +0000 (15:15 -0500)
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 9b6b10464a4fa06edd57a19fd6d5350f4a805bd8..37a0d14f879dfcaeebfd4e431442d7355de26bb4 100644 (file)
@@ -2380,6 +2380,14 @@ end:
        return field_path;
 }
 
+BT_HIDDEN
+void bt_ctf_field_path_clear(struct bt_ctf_field_path *field_path)
+{
+       if (field_path->path_indexes->len > 0) {
+               g_array_remove_range(field_path->path_indexes, 0,
+                       field_path->path_indexes->len);
+       }
+}
 
 BT_HIDDEN
 struct bt_ctf_field_path *bt_ctf_field_path_copy(
index 5a8538f4a6bb2796b36d8041c25e89e1afa12585..ba979682e9a6f268fb3cefff021f357b40a7f383 100644 (file)
@@ -219,6 +219,9 @@ struct bt_ctf_field_type *bt_ctf_field_type_copy(
 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);
This page took 0.027432 seconds and 4 git commands to generate.