X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=lib%2Ftrace-ir%2Ffield-path.c;h=3303134b08ba3e248024642ac18ff90dd12877eb;hb=35fa110e5bea4a35497313adf3e3d0fa09db9ff7;hp=a767182e3c635ae864a8e699c1d97e272a8fc53f;hpb=0f15f66682cac676ce437aaa58cf114f315628ad;p=babeltrace.git diff --git a/lib/trace-ir/field-path.c b/lib/trace-ir/field-path.c index a767182e..3303134b 100644 --- a/lib/trace-ir/field-path.c +++ b/lib/trace-ir/field-path.c @@ -1,6 +1,6 @@ /* + * Copyright 2016-2018 Philippe Proulx * Copyright 2013, 2014 Jérémie Galarneau - * Copyright 2016 Philippe Proulx * * 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 #include #include -#include #include #include #include @@ -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); +}