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_TRACE_IR_ATTRIBUTES_H
9 #define BABELTRACE_TRACE_IR_ATTRIBUTES_H
16 #include "common/macros.h"
17 #include <babeltrace2/value.h>
20 struct bt_value
*bt_attributes_create(void);
23 void bt_attributes_destroy(struct bt_value
*attr_obj
);
26 uint64_t bt_attributes_get_count(const struct bt_value
*attr_obj
);
29 const char *bt_attributes_get_field_name(const struct bt_value
*attr_obj
,
33 struct bt_value
*bt_attributes_borrow_field_value(
34 struct bt_value
*attr_obj
,
38 int bt_attributes_set_field_value(struct bt_value
*attr_obj
,
39 const char *name
, struct bt_value
*value_obj
);
42 struct bt_value
*bt_attributes_borrow_field_value_by_name(
43 struct bt_value
*attr_obj
, const char *name
);
46 int bt_attributes_freeze(const struct bt_value
*attr_obj
);
52 #endif /* BABELTRACE_TRACE_IR_ATTRIBUTES_H */
This page took 0.033711 seconds and 4 git commands to generate.