Fix: allow duplicate keys and overlapping ranges in enumerations
[babeltrace.git] / include / babeltrace / ctf-ir / fields.h
index 536a88f57da3e08a5dd4e6523cb7f7093621bd36..e9f59fb303bf20cad66f32cdb1d1cc7f644246b0 100644 (file)
@@ -126,6 +126,7 @@ struct bt_ctf_field;
 struct bt_ctf_event_class;
 struct bt_ctf_event;
 struct bt_ctf_field_type;
+struct bt_ctf_field_type_enum_iter;
 
 /**
 @name Creation and parent field type access functions
@@ -208,6 +209,19 @@ extern struct bt_ctf_field_type *bt_ctf_field_get_type(
 */
 extern enum bt_ctf_type_id bt_ctf_field_get_type_id(struct bt_ctf_field *field);
 
+/*
+ * bt_ctf_field_signed_integer_get_value: get a signed integer field's value
+ *
+ * Get a signed integer field's value.
+ *
+ * @param integer Signed integer field instance.
+ * @param value Pointer to a signed integer where the value will be stored.
+ *
+ * Returns 0 on success, a negative value on error.
+ */
+extern int bt_ctf_field_signed_integer_get_value(struct bt_ctf_field *integer,
+               int64_t *value);
+
 /**
 @brief Returns whether or not the @field \p field is a @intfield.
 
@@ -1111,6 +1125,9 @@ extern struct bt_ctf_field *bt_ctf_field_variant_get_tag(
 
 /** @} */
 
+const char *bt_ctf_field_enumeration_get_single_mapping_name(
+       struct bt_ctf_field *field);
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.023887 seconds and 4 git commands to generate.