lib: Reset libbabeltrace2 to SONANE 0
[babeltrace.git] / include / babeltrace / ctf-writer / clock.h
index 7276f451853827b3f1c92739f3ed9cd69b5d4046..36e191f33d348e9c3ab8a4287dd29e959498fa12 100644 (file)
@@ -2,8 +2,6 @@
 #define BABELTRACE_CTF_WRITER_CLOCK_H
 
 /*
- * BabelTrace - CTF Writer: Clock
- *
  * Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
  * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
  */
 
 #include <stdint.h>
+#include <babeltrace/ctf-writer/object.h>
+#include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 struct bt_ctf_clock;
+struct bt_ctf_clock_class;
 
 /*
  * bt_ctf_clock_create: create a clock.
@@ -265,9 +266,20 @@ extern int bt_ctf_clock_set_time(struct bt_ctf_clock *clock,
  *
  * @param clock Clock instance.
  */
-extern void bt_ctf_clock_get(struct bt_ctf_clock *clock);
-extern void bt_ctf_clock_put(struct bt_ctf_clock *clock);
 
+/* Pre-2.0 CTF writer compatibility */
+static inline
+void bt_ctf_clock_get(struct bt_ctf_clock *clock)
+{
+        bt_ctf_object_get_ref(clock);
+}
+
+/* Pre-2.0 CTF writer compatibility */
+static inline
+void bt_ctf_clock_put(struct bt_ctf_clock *clock)
+{
+        bt_ctf_object_put_ref(clock);
+}
 #ifdef __cplusplus
 }
 #endif
This page took 0.024904 seconds and 4 git commands to generate.