lib: Reset libbabeltrace2 to SONANE 0
[babeltrace.git] / include / babeltrace / ctf-writer / event.h
index 4c7ec2952de33d173ca8ec59e8a40e2419fe83de..c4e8965b8f1a487ba6c4d16c6a152ac167c10398 100644 (file)
@@ -2,8 +2,6 @@
 #define BABELTRACE_CTF_WRITER_EVENT_H
 
 /*
- * BabelTrace - CTF Writer: Event
- *
  * Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
  * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
@@ -30,7 +28,7 @@
  * http://www.efficios.com/ctf
  */
 
-#include <babeltrace/ref.h>
+#include <babeltrace/ctf-writer/object.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -138,14 +136,14 @@ extern struct bt_ctf_event_class *bt_ctf_event_get_class(
 static inline
 void bt_ctf_event_get(struct bt_ctf_event *event)
 {
-       bt_get(event);
+       bt_ctf_object_get_ref(event);
 }
 
 /* Pre-2.0 CTF writer compatibility */
 static inline
 void bt_ctf_event_put(struct bt_ctf_event *event)
 {
-       bt_put(event);
+       bt_ctf_object_put_ref(event);
 }
 
 extern struct bt_ctf_event_class *bt_ctf_event_class_create(const char *name);
@@ -201,14 +199,14 @@ extern struct bt_ctf_field_type *bt_ctf_event_class_get_field_by_name(
 static inline
 void bt_ctf_event_class_get(struct bt_ctf_event_class *event_class)
 {
-       bt_get(event_class);
+       bt_ctf_object_get_ref(event_class);
 }
 
 /* Pre-2.0 CTF writer compatibility */
 static inline
 void bt_ctf_event_class_put(struct bt_ctf_event_class *event_class)
 {
-       bt_put(event_class);
+       bt_ctf_object_put_ref(event_class);
 }
 
 #ifdef __cplusplus
This page took 0.024254 seconds and 4 git commands to generate.