Move to kernel style SPDX license identifiers
[babeltrace.git] / src / ctf-writer / attributes.h
CommitLineData
16ca5ff0 1/*
0235b0db
MJ
2 * SPDX-License-Identifier: MIT
3 *
16ca5ff0
PP
4 * Copyright (c) 2015 EfficiOS Inc. and Linux Foundation
5 * Copyright (c) 2015 Philippe Proulx <pproulx@efficios.com>
16ca5ff0
PP
6 */
7
0235b0db
MJ
8#ifndef BABELTRACE_CTF_WRITER_ATTRIBUTES_H
9#define BABELTRACE_CTF_WRITER_ATTRIBUTES_H
10
16ca5ff0
PP
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include <stdint.h>
91d81473 16#include "common/macros.h"
578e048b
MJ
17
18#include "values.h"
16ca5ff0
PP
19
20BT_HIDDEN
e1e02a22 21struct bt_ctf_private_value *bt_ctf_attributes_create(void);
16ca5ff0
PP
22
23BT_HIDDEN
e1e02a22 24void bt_ctf_attributes_destroy(struct bt_ctf_private_value *attr_obj);
16ca5ff0
PP
25
26BT_HIDDEN
e1e02a22 27int64_t bt_ctf_attributes_get_count(struct bt_ctf_private_value *attr_obj);
16ca5ff0
PP
28
29BT_HIDDEN
e1e02a22 30const char *bt_ctf_attributes_get_field_name(struct bt_ctf_private_value *attr_obj,
16ca5ff0
PP
31 uint64_t index);
32
33BT_HIDDEN
e1e02a22 34struct bt_ctf_private_value *bt_ctf_attributes_borrow_field_value(struct bt_ctf_private_value *attr_obj,
16ca5ff0
PP
35 uint64_t index);
36
37BT_HIDDEN
e1e02a22
PP
38int bt_ctf_attributes_set_field_value(struct bt_ctf_private_value *attr_obj,
39 const char *name, struct bt_ctf_private_value *value_obj);
16ca5ff0
PP
40
41BT_HIDDEN
e1e02a22
PP
42struct bt_ctf_private_value *bt_ctf_attributes_borrow_field_value_by_name(
43 struct bt_ctf_private_value *attr_obj, const char *name);
16ca5ff0
PP
44
45BT_HIDDEN
e1e02a22 46int bt_ctf_attributes_freeze(struct bt_ctf_private_value *attr_obj);
16ca5ff0
PP
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* BABELTRACE_CTF_WRITER_ATTRIBUTES_H */
This page took 0.065038 seconds and 4 git commands to generate.