2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation
7 #ifndef BABELTRACE2_CTF_WRITER_EVENT_FIELDS_H
8 #define BABELTRACE2_CTF_WRITER_EVENT_FIELDS_H
10 #include <babeltrace2-ctf-writer/object.h>
11 #include <babeltrace2-ctf-writer/field-types.h>
12 #include <babeltrace2-ctf-writer/fields.h>
19 * bt_ctf_field_get and bt_ctf_field_put: increment and decrement the
20 * field's reference count.
22 * You may also use bt_ctf_object_get_ref() and bt_ctf_object_put_ref() with field objects.
24 * These functions ensure that the field won't be destroyed when it
25 * is in use. The same number of get and put (plus one extra put to
26 * release the initial reference done at creation) have to be done to
29 * When the field's reference count is decremented to 0 by a bt_ctf_field_put,
32 * @param field Field instance.
35 /* Pre-2.0 CTF writer compatibility */
37 void bt_ctf_field_get(struct bt_ctf_field
*field
)
39 bt_ctf_object_get_ref(field
);
42 /* Pre-2.0 CTF writer compatibility */
44 void bt_ctf_field_put(struct bt_ctf_field
*field
)
46 bt_ctf_object_put_ref(field
);
53 #endif /* BABELTRACE2_CTF_WRITER_EVENT_FIELDS_H */
This page took 0.049242 seconds and 4 git commands to generate.