-struct type_class_struct *struct_type_new(const char *name);
-void struct_type_free(struct type_class_struct *struct_class);
-void struct_type_add_field(struct type_class_struct *struct_class,
- const char *field_name,
- struct type_class *type_class);
+/*
+ * Returns a GArray of GQuark or NULL.
+ * Caller must release the GArray with g_array_unref().
+ */
+GArray *enum_uint_to_quark_set(const struct type_enum *enum_type, uint64_t v);
+
+/*
+ * Returns a GArray of GQuark or NULL.
+ * Caller must release the GArray with g_array_unref().
+ */
+GArray *enum_int_to_quark_set(const struct type_enum *enum_type, uint64_t v);
+
+/*
+ * Returns a GArray of struct enum_range or NULL.
+ * Callers do _not_ own the returned GArray (and therefore _don't_ need to
+ * release it).
+ */
+GArray *enum_quark_to_range_set(const struct type_enum *enum_type, GQuark q);
+void enum_signed_insert(struct type_enum *enum_type,
+ int64_t start, int64_t end, GQuark q);
+void enum_unsigned_insert(struct type_enum *enum_type,
+ uint64_t start, uint64_t end, GQuark q);
+size_t enum_get_nr_enumerators(struct type_enum *enum_type);
+
+struct type_enum *enum_type_new(const char *name,
+ struct type_integer *integer_type);
+
+struct type_struct *struct_type_new(const char *name,
+ struct type_scope *parent_scope);
+void struct_type_add_field(struct type_struct *struct_type,
+ const char *field_name, struct type *field_type);