ir: make bt_ctf_field_copy() public
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 20 Mar 2015 18:04:21 +0000 (14:04 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 28 Apr 2015 19:15:35 +0000 (15:15 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event-fields.c
include/babeltrace/ctf-ir/event-fields-internal.h
include/babeltrace/ctf-ir/event-fields.h

index 257ad523cc8ae20918c7d33d1b149d6b23f6042c..29c5397f7d2fe9406afbc3c90c6d567ca5c46eef 100644 (file)
@@ -1081,7 +1081,6 @@ end:
        return ret;
 }
 
-BT_HIDDEN
 struct bt_ctf_field *bt_ctf_field_copy(struct bt_ctf_field *field)
 {
        int ret;
index 88f372dd47e3225adf003f73e43f640681e3cea6..34f8fad4476656805ca4d575e9f293e1d0fa0eea 100644 (file)
@@ -102,7 +102,4 @@ BT_HIDDEN
 int bt_ctf_field_serialize(struct bt_ctf_field *field,
                struct ctf_stream_pos *pos);
 
-BT_HIDDEN
-struct bt_ctf_field *bt_ctf_field_copy(struct bt_ctf_field *field);
-
 #endif /* BABELTRACE_CTF_WRITER_EVENT_FIELDS_INTERNAL_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.02751 seconds and 4 git commands to generate.