lib: remove unused includes
[babeltrace.git] / src / lib / trace-ir / attributes.h
... / ...
CommitLineData
1/*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (c) 2015-2018 Philippe Proulx <pproulx@efficios.com>
5 * Copyright (c) 2015 EfficiOS Inc. and Linux Foundation
6 */
7
8#ifndef BABELTRACE_TRACE_IR_ATTRIBUTES_H
9#define BABELTRACE_TRACE_IR_ATTRIBUTES_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include <stdint.h>
16#include <babeltrace2/value.h>
17
18struct bt_value *bt_attributes_create(void);
19
20void bt_attributes_destroy(struct bt_value *attr_obj);
21
22uint64_t bt_attributes_get_count(const struct bt_value *attr_obj);
23
24const char *bt_attributes_get_field_name(const struct bt_value *attr_obj,
25 uint64_t index);
26
27struct bt_value *bt_attributes_borrow_field_value(
28 struct bt_value *attr_obj,
29 uint64_t index);
30
31int bt_attributes_set_field_value(struct bt_value *attr_obj,
32 const char *name, struct bt_value *value_obj);
33
34struct bt_value *bt_attributes_borrow_field_value_by_name(
35 struct bt_value *attr_obj, const char *name);
36
37int bt_attributes_freeze(const struct bt_value *attr_obj);
38
39#ifdef __cplusplus
40}
41#endif
42
43#endif /* BABELTRACE_TRACE_IR_ATTRIBUTES_H */
This page took 0.02325 seconds and 4 git commands to generate.