Commit | Line | Data |
---|---|---|
16ca5ff0 | 1 | /* |
0235b0db | 2 | * SPDX-License-Identifier: MIT |
16ca5ff0 | 3 | * |
0235b0db | 4 | * Copyright 2018 Philippe Proulx <pproulx@efficios.com> |
16ca5ff0 PP |
5 | */ |
6 | ||
0235b0db MJ |
7 | #ifndef BABELTRACE_CTF_WRITER_FIELD_WRAPPER_INTERNAL_H |
8 | #define BABELTRACE_CTF_WRITER_FIELD_WRAPPER_INTERNAL_H | |
9 | ||
91d81473 | 10 | #include "common/macros.h" |
578e048b MJ |
11 | |
12 | #include "fields.h" | |
13 | #include "object.h" | |
14 | #include "object-pool.h" | |
16ca5ff0 PP |
15 | |
16 | struct bt_ctf_field_wrapper { | |
e1e02a22 | 17 | struct bt_ctf_object base; |
16ca5ff0 PP |
18 | |
19 | /* Owned by this */ | |
20 | struct bt_ctf_field_common *field; | |
21 | }; | |
22 | ||
23 | BT_HIDDEN | |
24 | struct bt_ctf_field_wrapper *bt_ctf_field_wrapper_new(void *data); | |
25 | ||
26 | BT_HIDDEN | |
27 | void bt_ctf_field_wrapper_destroy(struct bt_ctf_field_wrapper *field); | |
28 | ||
29 | BT_HIDDEN | |
30 | struct bt_ctf_field_wrapper *bt_ctf_field_wrapper_create( | |
e1e02a22 | 31 | struct bt_ctf_object_pool *pool, struct bt_ctf_field_type *ft); |
16ca5ff0 PP |
32 | |
33 | #endif /* BABELTRACE_CTF_WRITER_FIELD_WRAPPER_INTERNAL_H */ |