lib: make values API const-correct
[babeltrace.git] / include / babeltrace / trace-ir / private-fields.h
index 09479edbe4830d646d02876474ac192366090059..1d98f7acac62e6a83849cc3ee041637add0c4e87 100644 (file)
@@ -38,8 +38,12 @@ struct bt_field;
 struct bt_private_field;
 struct bt_private_field_class;
 
-extern struct bt_field *bt_field_borrow_from_private(
-               struct bt_private_field *priv_field);
+static inline
+struct bt_field *bt_private_field_as_field(
+               struct bt_private_field *priv_field)
+{
+       return (void *) priv_field;
+}
 
 extern struct bt_private_field_class *bt_private_field_borrow_class(
                struct bt_private_field *field);
This page took 0.024749 seconds and 4 git commands to generate.