#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.
*
* @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