* SOFTWARE.
*/
+#include <stdint.h>
#include <babeltrace/ctf-writer/event-types.h>
#include <babeltrace/ctf-writer/event-fields.h>
#include <babeltrace/ctf-writer/writer.h>
#include <babeltrace/ctf-ir/clock-class.h>
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/object-internal.h>
+#include <babeltrace/types.h>
#include <glib.h>
typedef void (*type_freeze_func)(struct bt_ctf_field_type *);
struct bt_ctf_field_type {
struct bt_object base;
- enum bt_ctf_type_id id;
+ enum bt_ctf_field_type_id id;
unsigned int alignment;
type_freeze_func freeze;
type_serialize_func serialize;
struct bt_ctf_field_type parent;
struct bt_ctf_clock_class *mapped_clock;
enum bt_ctf_byte_order user_byte_order;
- bool is_signed;
+ bt_bool is_signed;
unsigned int size;
enum bt_ctf_integer_base base;
enum bt_ctf_string_encoding encoding;
struct bt_ctf_field_type *container;
GPtrArray *entries; /* Array of ptrs to struct enumeration_mapping */
/* Only set during validation. */
- bool has_overlapping_ranges;
+ bt_bool has_overlapping_ranges;
};
enum bt_ctf_field_type_enumeration_mapping_iterator_type {
struct bt_ctf_field_type *element_type);
BT_HIDDEN
-int bt_ctf_field_type_get_field_count(struct bt_ctf_field_type *type);
+int64_t bt_ctf_field_type_get_field_count(struct bt_ctf_field_type *type);
BT_HIDDEN
struct bt_ctf_field_type *bt_ctf_field_type_get_field_at_index(