Fix: bfcr_get_sequence_length_cb(): do not set text array's length
[babeltrace.git] / lib / trace-ir / field-path.c
index a767182e3c635ae864a8e699c1d97e272a8fc53f..3303134b08ba3e248024642ac18ff90dd12877eb 100644 (file)
@@ -1,6 +1,6 @@
 /*
+ * Copyright 2016-2018 Philippe Proulx <pproulx@efficios.com>
  * Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
- * Copyright 2016 Philippe Proulx <pproulx@efficios.com>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -29,7 +29,6 @@
 #include <babeltrace/trace-ir/field-class-internal.h>
 #include <babeltrace/trace-ir/field-path-internal.h>
 #include <babeltrace/trace-ir/field-path-const.h>
-#include <babeltrace/object.h>
 #include <limits.h>
 #include <stdint.h>
 #include <inttypes.h>
@@ -98,3 +97,13 @@ uint64_t bt_field_path_get_index_by_index(
        BT_ASSERT_PRE_VALID_INDEX(index, field_path->indexes->len);
        return bt_field_path_get_index_by_index_inline(field_path, index);
 }
+
+void bt_field_path_get_ref(const struct bt_field_path *field_path)
+{
+       bt_object_get_ref(field_path);
+}
+
+void bt_field_path_put_ref(const struct bt_field_path *field_path)
+{
+       bt_object_put_ref(field_path);
+}
This page took 0.063913 seconds and 4 git commands to generate.