ir: make trace environment use bt_object
[babeltrace.git] / include / babeltrace / ctf-ir / utils.h
index d661ed88f5f8dee4fa060fee506630209d2cc250..de4a07ef635c4adc356ad31f639a6346f9b03046 100644 (file)
@@ -34,6 +34,9 @@
 extern "C" {
 #endif
 
+#include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/objects.h>
+
 /*
  * bt_ctf_validate_identifier: validate an identifier against the CTF spec.
  *
@@ -49,6 +52,34 @@ extern "C" {
  */
 extern int bt_ctf_validate_identifier(const char *identifier);
 
+BT_HIDDEN
+struct bt_object *bt_ctf_attributes_create(void);
+
+BT_HIDDEN
+void bt_ctf_attributes_destroy(struct bt_object *attr_obj);
+
+BT_HIDDEN
+int bt_ctf_attributes_get_count(struct bt_object *attr_obj);
+
+BT_HIDDEN
+const char *bt_ctf_attributes_get_field_name(struct bt_object *attr_obj,
+               int index);
+
+BT_HIDDEN
+struct bt_object *bt_ctf_attributes_get_field_value(struct bt_object *attr_obj,
+               int index);
+
+BT_HIDDEN
+int bt_ctf_attributes_set_field_value(struct bt_object *attr_obj,
+               const char *name, struct bt_object *value_obj);
+
+BT_HIDDEN
+struct bt_object *bt_ctf_attributes_get_field_value_by_name(
+               struct bt_object *attr_obj, const char *name);
+
+BT_HIDDEN
+int bt_ctf_attributes_freeze(struct bt_object *attr_obj);
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.023617 seconds and 4 git commands to generate.