Rename bt_ctf_X -> bt_X, maintain backward compat. for pre-2.0 CTF writer
[babeltrace.git] / bindings / python / bt2 / bt2 / native_btfields.i
index cc194406536eb41c895e3b545fe15cb1138ebe97..051ae66136a4a5ee5822e41bd387c9b282e8af0e 100644 (file)
  */
 
 /* Type */
-struct bt_ctf_field;
+struct bt_field;
 
 /* Common functions */
-struct bt_ctf_field *bt_ctf_field_create(
-               struct bt_ctf_field_type *type);
-struct bt_ctf_field_type *bt_ctf_field_get_type(
-               struct bt_ctf_field *field);
-struct bt_ctf_field *bt_ctf_field_copy(struct bt_ctf_field *field);
-bt_bool bt_ctf_field_is_set(struct bt_ctf_field *field);
-int bt_ctf_field_reset(struct bt_ctf_field *field);
+struct bt_field *bt_field_create(
+               struct bt_field_type *type);
+struct bt_field_type *bt_field_get_type(
+               struct bt_field *field);
+struct bt_field *bt_field_copy(struct bt_field *field);
+bt_bool bt_field_is_set(struct bt_field *field);
+int bt_field_reset(struct bt_field *field);
 
 /* Integer field functions */
-int bt_ctf_field_signed_integer_get_value(struct bt_ctf_field *integer,
+int bt_field_signed_integer_get_value(struct bt_field *integer,
                int64_t *OUTPUT);
-int bt_ctf_field_signed_integer_set_value(struct bt_ctf_field *integer,
+int bt_field_signed_integer_set_value(struct bt_field *integer,
                int64_t value);
-int bt_ctf_field_unsigned_integer_get_value(struct bt_ctf_field *integer,
+int bt_field_unsigned_integer_get_value(struct bt_field *integer,
                uint64_t *OUTPUT);
-int bt_ctf_field_unsigned_integer_set_value(struct bt_ctf_field *integer,
+int bt_field_unsigned_integer_set_value(struct bt_field *integer,
                uint64_t value);
 
 /* Floating point number field functions */
-int bt_ctf_field_floating_point_get_value(
-               struct bt_ctf_field *floating_point, double *OUTPUT);
-int bt_ctf_field_floating_point_set_value(
-               struct bt_ctf_field *floating_point,
+int bt_field_floating_point_get_value(
+               struct bt_field *floating_point, double *OUTPUT);
+int bt_field_floating_point_set_value(
+               struct bt_field *floating_point,
                double value);
 
 /* Enumeration field functions */
-struct bt_ctf_field *bt_ctf_field_enumeration_get_container(
-               struct bt_ctf_field *enumeration);
-struct bt_ctf_field_type_enumeration_mapping_iterator *
-bt_ctf_field_enumeration_get_mappings(struct bt_ctf_field *enum_field);
+struct bt_field *bt_field_enumeration_get_container(
+               struct bt_field *enumeration);
+struct bt_field_type_enumeration_mapping_iterator *
+bt_field_enumeration_get_mappings(struct bt_field *enum_field);
 
 /* String field functions */
-const char *bt_ctf_field_string_get_value(
-               struct bt_ctf_field *string_field);
-int bt_ctf_field_string_set_value(struct bt_ctf_field *string_field,
+const char *bt_field_string_get_value(
+               struct bt_field *string_field);
+int bt_field_string_set_value(struct bt_field *string_field,
                const char *value);
-int bt_ctf_field_string_append(struct bt_ctf_field *string_field,
+int bt_field_string_append(struct bt_field *string_field,
                const char *value);
-int bt_ctf_field_string_append_len(
-               struct bt_ctf_field *string_field, const char *value,
+int bt_field_string_append_len(
+               struct bt_field *string_field, const char *value,
                unsigned int length);
 
 /* Structure field functions */
-struct bt_ctf_field *bt_ctf_field_structure_get_field_by_index(
-               struct bt_ctf_field *structure, int index);
-struct bt_ctf_field *bt_ctf_field_structure_get_field_by_name(
-               struct bt_ctf_field *struct_field, const char *name);
-int bt_ctf_field_structure_set_field_by_name(struct bt_ctf_field *struct_field,
-               const char *name, struct bt_ctf_field *field);
+struct bt_field *bt_field_structure_get_field_by_index(
+               struct bt_field *structure, int index);
+struct bt_field *bt_field_structure_get_field_by_name(
+               struct bt_field *struct_field, const char *name);
+int bt_field_structure_set_field_by_name(struct bt_field *struct_field,
+               const char *name, struct bt_field *field);
 
 /* Array field functions */
-struct bt_ctf_field *bt_ctf_field_array_get_field(
-               struct bt_ctf_field *array, uint64_t index);
+struct bt_field *bt_field_array_get_field(
+               struct bt_field *array, uint64_t index);
 
 /* Sequence field functions */
-struct bt_ctf_field *bt_ctf_field_sequence_get_length(
-               struct bt_ctf_field *sequence);
-int bt_ctf_field_sequence_set_length(struct bt_ctf_field *sequence,
-               struct bt_ctf_field *length_field);
-struct bt_ctf_field *bt_ctf_field_sequence_get_field(
-               struct bt_ctf_field *sequence, uint64_t index);
+struct bt_field *bt_field_sequence_get_length(
+               struct bt_field *sequence);
+int bt_field_sequence_set_length(struct bt_field *sequence,
+               struct bt_field *length_field);
+struct bt_field *bt_field_sequence_get_field(
+               struct bt_field *sequence, uint64_t index);
 
 /* Variant field functions */
-struct bt_ctf_field *bt_ctf_field_variant_get_field(
-               struct bt_ctf_field *variant, struct bt_ctf_field *tag);
-struct bt_ctf_field *bt_ctf_field_variant_get_current_field(
-               struct bt_ctf_field *variant);
-struct bt_ctf_field *bt_ctf_field_variant_get_tag(
-               struct bt_ctf_field *variant);
+struct bt_field *bt_field_variant_get_field(
+               struct bt_field *variant, struct bt_field *tag);
+struct bt_field *bt_field_variant_get_current_field(
+               struct bt_field *variant);
+struct bt_field *bt_field_variant_get_tag(
+               struct bt_field *variant);
This page took 0.026369 seconds and 4 git commands to generate.