X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-writer%2Fevent-fields.h;h=f99f6812020a1789b29ac105cbc3056165ca445a;hb=98bd6ec2cbc37814f9d92372fd8e9aa2c5956489;hp=089b1c5f07cc6b73ea8d104c0051b8f8f69cc3c5;hpb=086dc475ceb130777725ddd30dff168f62a3d3ea;p=babeltrace.git diff --git a/include/babeltrace/ctf-writer/event-fields.h b/include/babeltrace/ctf-writer/event-fields.h index 089b1c5f..f99f6812 100644 --- a/include/babeltrace/ctf-writer/event-fields.h +++ b/include/babeltrace/ctf-writer/event-fields.h @@ -2,8 +2,6 @@ #define BABELTRACE_CTF_WRITER_EVENT_FIELDS_H /* - * BabelTrace - CTF Writer: Event Fields - * * Copyright 2013, 2014 Jérémie Galarneau * * Author: Jérémie Galarneau @@ -30,7 +28,7 @@ * http://www.efficios.com/ctf */ -#include +#include #include #include @@ -42,7 +40,7 @@ extern "C" { * bt_ctf_field_get and bt_ctf_field_put: increment and decrement the * field's reference count. * - * You may also use bt_get() and bt_put() with field objects. + * You may also use bt_ctf_object_get_ref() and bt_ctf_object_put_ref() with field objects. * * These functions ensure that the field won't be destroyed when it * is in use. The same number of get and put (plus one extra put to @@ -59,14 +57,14 @@ extern "C" { static inline void bt_ctf_field_get(struct bt_ctf_field *field) { - bt_get(field); + bt_ctf_object_get_ref(field); } /* Pre-2.0 CTF writer compatibility */ static inline void bt_ctf_field_put(struct bt_ctf_field *field) { - bt_put(field); + bt_ctf_object_put_ref(field); } #ifdef __cplusplus