| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright 2018 Philippe Proulx <pproulx@efficios.com> |
| 5 | */ |
| 6 | |
| 7 | #ifndef BABELTRACE_TRACE_IR_FIELD_WRAPPER_INTERNAL_H |
| 8 | #define BABELTRACE_TRACE_IR_FIELD_WRAPPER_INTERNAL_H |
| 9 | |
| 10 | #include "lib/object-pool.h" |
| 11 | #include "lib/object.h" |
| 12 | |
| 13 | #include "field.h" |
| 14 | |
| 15 | struct bt_field_wrapper { |
| 16 | struct bt_object base; |
| 17 | |
| 18 | /* Owned by this */ |
| 19 | struct bt_field *field; |
| 20 | }; |
| 21 | |
| 22 | struct bt_field_wrapper *bt_field_wrapper_new(void *data); |
| 23 | |
| 24 | void bt_field_wrapper_destroy(struct bt_field_wrapper *field); |
| 25 | |
| 26 | struct bt_field_wrapper *bt_field_wrapper_create( |
| 27 | struct bt_object_pool *pool, struct bt_field_class *fc); |
| 28 | |
| 29 | #endif /* BABELTRACE_TRACE_IR_FIELD_WRAPPER_INTERNAL_H */ |