X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Ftrace-ir%2Ffield-path.c;fp=src%2Flib%2Ftrace-ir%2Ffield-path.c;h=ab3d04a4dca024059b5c6fa333050623e3532c52;hb=1353b066072e6c389ff35853bac83f65597e7a6a;hp=f7d7551b0e052f34d5ce8ca408d8853d031eb0fa;hpb=5b616db96266d25cb0749e472cfc78c4944675e2;p=babeltrace.git diff --git a/src/lib/trace-ir/field-path.c b/src/lib/trace-ir/field-path.c index f7d7551b..ab3d04a4 100644 --- a/src/lib/trace-ir/field-path.c +++ b/src/lib/trace-ir/field-path.c @@ -32,7 +32,6 @@ void destroy_field_path(struct bt_object *obj) g_free(field_path); } -BT_HIDDEN struct bt_field_path *bt_field_path_create(void) { struct bt_field_path *field_path = NULL; @@ -63,6 +62,7 @@ end: return field_path; } +BT_EXPORT enum bt_field_path_scope bt_field_path_get_root_scope( const struct bt_field_path *field_path) { @@ -70,12 +70,14 @@ enum bt_field_path_scope bt_field_path_get_root_scope( return field_path->root; } +BT_EXPORT uint64_t bt_field_path_get_item_count(const struct bt_field_path *field_path) { BT_ASSERT_PRE_DEV_FP_NON_NULL(field_path); return (uint64_t) field_path->items->len; } +BT_EXPORT const struct bt_field_path_item *bt_field_path_borrow_item_by_index_const( const struct bt_field_path *field_path, uint64_t index) { @@ -84,6 +86,7 @@ const struct bt_field_path_item *bt_field_path_borrow_item_by_index_const( return bt_field_path_borrow_item_by_index_inline(field_path, index); } +BT_EXPORT enum bt_field_path_item_type bt_field_path_item_get_type( const struct bt_field_path_item *field_path_item) { @@ -92,6 +95,7 @@ enum bt_field_path_item_type bt_field_path_item_get_type( return field_path_item->type; } +BT_EXPORT uint64_t bt_field_path_item_index_get_index( const struct bt_field_path_item *field_path_item) { @@ -105,11 +109,13 @@ uint64_t bt_field_path_item_index_get_index( return field_path_item->index; } +BT_EXPORT void bt_field_path_get_ref(const struct bt_field_path *field_path) { bt_object_get_ref(field_path); } +BT_EXPORT void bt_field_path_put_ref(const struct bt_field_path *field_path) { bt_object_put_ref(field_path);