Split CTF IR and CTF writer APIs and implementations
[babeltrace.git] / include / babeltrace / ctf-writer / event-types.h
index fa5cf8caa2808b6398d31fe99edcb0328ec1756a..9b41bf09b04f0416e54cd9f8a5ca03aa33b7701b 100644 (file)
@@ -30,6 +30,7 @@
  * http://www.efficios.com/ctf
  */
 
+#include <babeltrace/ref.h>
 #include <babeltrace/ctf-ir/field-types.h>
 
 #ifdef __cplusplus
@@ -52,8 +53,20 @@ extern "C" {
  *
  * @param type Field type.
  */
-extern void bt_ctf_field_type_get(struct bt_field_type *type);
-extern void bt_ctf_field_type_put(struct bt_field_type *type);
+
+/* Pre-2.0 CTF writer compatibility */
+static inline
+void bt_ctf_field_type_get(struct bt_field_type *type)
+{
+       bt_get(type);
+}
+
+/* Pre-2.0 CTF writer compatibility */
+static inline
+void bt_ctf_field_type_put(struct bt_field_type *type)
+{
+       bt_put(type);
+}
 
 #ifdef __cplusplus
 }
This page took 0.023753 seconds and 4 git commands to generate.