lib: rename option/var. "selector" to "selector field"
[babeltrace.git] / include / babeltrace2 / trace-ir / field-class.h
index 847064b924b046769c1cf453d928ab36f458bb23..e8be1c51e75d1394ff670e682599da2e3874365b 100644 (file)
@@ -62,11 +62,11 @@ extern void bt_field_class_integer_set_preferred_display_base(
                bt_field_class *field_class,
                bt_field_class_integer_preferred_display_base base);
 
-extern bt_field_class *bt_field_class_real_create(bt_trace_class *trace_class);
+extern bt_field_class *bt_field_class_real_single_precision_create(
+               bt_trace_class *trace_class);
 
-extern void bt_field_class_real_set_is_single_precision(
-               bt_field_class *field_class,
-               bt_bool is_single_precision);
+extern bt_field_class *bt_field_class_real_double_precision_create(
+               bt_trace_class *trace_class);
 
 extern bt_field_class *bt_field_class_enumeration_unsigned_create(
                bt_trace_class *trace_class);
@@ -113,6 +113,10 @@ extern bt_field_class_structure_member *
 bt_field_class_structure_borrow_member_by_name(
                bt_field_class *field_class, const char *name);
 
+extern bt_field_class *
+bt_field_class_structure_member_borrow_field_class(
+               bt_field_class_structure_member *member);
+
 extern bt_value *bt_field_class_structure_member_borrow_user_attributes(
                bt_field_class_structure_member *member);
 
@@ -132,18 +136,42 @@ extern bt_field_class *bt_field_class_array_dynamic_create(
 extern bt_field_class *bt_field_class_array_borrow_element_field_class(
                bt_field_class *field_class);
 
-extern bt_field_class *bt_field_class_option_create(
+extern bt_field_class *bt_field_class_option_without_selector_create(
+               bt_trace_class *trace_class,
+               bt_field_class *content_field_class);
+
+extern bt_field_class *bt_field_class_option_with_selector_field_bool_create(
                bt_trace_class *trace_class,
                bt_field_class *content_field_class,
                bt_field_class *selector_field_class);
 
+extern void bt_field_class_option_with_selector_field_bool_set_selector_is_reversed(
+               bt_field_class *field_class, bt_bool selector_is_reversed);
+
+extern bt_field_class *
+bt_field_class_option_with_selector_field_integer_unsigned_create(
+               bt_trace_class *trace_class,
+               bt_field_class *content_field_class,
+               bt_field_class *selector_field_class,
+               const bt_integer_range_set_unsigned *range_set);
+
+extern bt_field_class *
+bt_field_class_option_with_selector_field_integer_signed_create(
+               bt_trace_class *trace_class,
+               bt_field_class *content_field_class,
+               bt_field_class *selector_field_class,
+               const bt_integer_range_set_signed *range_set);
+
+extern bt_field_class *bt_field_class_option_borrow_field_class(
+               bt_field_class *field_class);
+
 extern bt_field_class *bt_field_class_variant_create(
                bt_trace_class *trace_class,
                bt_field_class *selector_field_class);
 
 typedef enum bt_field_class_variant_without_selector_append_option_status {
-       BT_FIELD_CLASS_VARIANT_WITHOUT_SELECTOR_APPEND_OPTION_STATUS_MEMORY_ERROR       = __BT_FUNC_STATUS_MEMORY_ERROR,
-       BT_FIELD_CLASS_VARIANT_WITHOUT_SELECTOR_APPEND_OPTION_STATUS_OK                 = __BT_FUNC_STATUS_OK,
+       BT_FIELD_CLASS_VARIANT_WITHOUT_SELECTOR_FIELD_APPEND_OPTION_STATUS_MEMORY_ERROR = __BT_FUNC_STATUS_MEMORY_ERROR,
+       BT_FIELD_CLASS_VARIANT_WITHOUT_SELECTOR_FIELD_APPEND_OPTION_STATUS_OK                   = __BT_FUNC_STATUS_OK,
 } bt_field_class_variant_without_selector_append_option_status;
 
 extern bt_field_class_variant_without_selector_append_option_status
@@ -151,19 +179,19 @@ bt_field_class_variant_without_selector_append_option(
                bt_field_class *var_field_class, const char *name,
                bt_field_class *field_class);
 
-typedef enum bt_field_class_variant_with_selector_append_option_status {
-       BT_FIELD_CLASS_VARIANT_WITH_SELECTOR_APPEND_OPTION_STATUS_MEMORY_ERROR  = __BT_FUNC_STATUS_MEMORY_ERROR,
-       BT_FIELD_CLASS_VARIANT_WITH_SELECTOR_APPEND_OPTION_STATUS_OK            = __BT_FUNC_STATUS_OK,
-} bt_field_class_variant_with_selector_append_option_status;
+typedef enum bt_field_class_variant_with_selector_field_integer_append_option_status {
+       BT_FIELD_CLASS_VARIANT_WITH_SELECTOR_FIELD_APPEND_OPTION_STATUS_MEMORY_ERROR    = __BT_FUNC_STATUS_MEMORY_ERROR,
+       BT_FIELD_CLASS_VARIANT_WITH_SELECTOR_FIELD_APPEND_OPTION_STATUS_OK              = __BT_FUNC_STATUS_OK,
+} bt_field_class_variant_with_selector_field_integer_append_option_status;
 
-extern bt_field_class_variant_with_selector_append_option_status
-bt_field_class_variant_with_selector_unsigned_append_option(
+extern bt_field_class_variant_with_selector_field_integer_append_option_status
+bt_field_class_variant_with_selector_field_integer_unsigned_append_option(
                bt_field_class *var_field_class, const char *name,
                bt_field_class *field_class,
                const bt_integer_range_set_unsigned *range_set);
 
-extern bt_field_class_variant_with_selector_append_option_status
-bt_field_class_variant_with_selector_signed_append_option(
+extern bt_field_class_variant_with_selector_field_integer_append_option_status
+bt_field_class_variant_with_selector_field_integer_signed_append_option(
                bt_field_class *var_field_class, const char *name,
                bt_field_class *field_class,
                const bt_integer_range_set_signed *range_set);
@@ -176,6 +204,9 @@ extern bt_field_class_variant_option *
 bt_field_class_variant_borrow_option_by_name(
                bt_field_class *field_class, const char *name);
 
+extern bt_field_class *bt_field_class_variant_option_borrow_field_class(
+               bt_field_class_variant_option *option);
+
 extern bt_value *bt_field_class_variant_option_borrow_user_attributes(
                bt_field_class_variant_option *option);
 
This page took 0.02609 seconds and 4 git commands to generate.