2 * SPDX-License-Identifier: MIT
4 * Copyright (c) 2015-2018 Philippe Proulx <pproulx@efficios.com>
5 * Copyright (c) 2015 EfficiOS Inc. and Linux Foundation
8 #ifndef BABELTRACE_LIB_TRACE_IR_ATTRIBUTES_H
9 #define BABELTRACE_LIB_TRACE_IR_ATTRIBUTES_H
16 #include <babeltrace2/value.h>
18 struct bt_value
*bt_attributes_create(void);
20 void bt_attributes_destroy(struct bt_value
*attr_obj
);
22 uint64_t bt_attributes_get_count(const struct bt_value
*attr_obj
);
24 const char *bt_attributes_get_field_name(const struct bt_value
*attr_obj
,
27 struct bt_value
*bt_attributes_borrow_field_value(
28 struct bt_value
*attr_obj
,
31 int bt_attributes_set_field_value(struct bt_value
*attr_obj
,
32 const char *name
, struct bt_value
*value_obj
);
34 struct bt_value
*bt_attributes_borrow_field_value_by_name(
35 struct bt_value
*attr_obj
, const char *name
);
37 int bt_attributes_freeze(const struct bt_value
*attr_obj
);
43 #endif /* BABELTRACE_LIB_TRACE_IR_ATTRIBUTES_H */
This page took 0.032034 seconds and 5 git commands to generate.