ir: make bt_ctf_field_copy() public
[babeltrace.git] / include / babeltrace / ctf-ir / event-fields.h
index b102d6323a51b6b8056655b61e5ec762560099b4..1d8f6439e3a761f1cf0efba5d0548ff73a90a1a8 100644 (file)
@@ -336,6 +336,20 @@ extern int bt_ctf_field_string_append_len(
 extern struct bt_ctf_field_type *bt_ctf_field_get_type(
                struct bt_ctf_field *field);
 
+/*
+ * bt_ctf_field_copy: get a field's deep copy.
+ *
+ * Get a field's deep copy. The created field copy shares the source's
+ * associated field types.
+ *
+ * On success, the returned copy has its reference count set to 1.
+ *
+ * @param field Field instance.
+ *
+ * Returns the field copy on success, NULL on error.
+ */
+extern struct bt_ctf_field *bt_ctf_field_copy(struct bt_ctf_field *field);
+
 /*
  * bt_ctf_field_get and bt_ctf_field_put: increment and decrement the
  * field's reference count.
This page took 0.023551 seconds and 4 git commands to generate.