-void type_ref(struct type *type);
-void type_unref(struct type *type);
-
-/* Nameless types can be created by passing a NULL name */
-
-struct type_class_integer *integer_type_class_new(const char *name,
- size_t len, int byte_order,
- int signedness,
- size_t alignment);
+/*
+ * field_definition is for field definitions. They are registered into
+ * definition scopes.
+ */
+struct definition *
+ lookup_definition(GArray *cur_path, /* array of GQuark */
+ GArray *lookup_path, /* array of GQuark */
+ struct definition_scope *scope);
+int register_field_definition(GQuark field_name,
+ struct definition *definition,
+ struct definition_scope *scope);
+struct definition_scope *
+ new_definition_scope(struct definition_scope *parent_scope,
+ GQuark field_name);
+void set_dynamic_definition_scope(struct definition *definition,
+ struct definition_scope *scope,
+ const char *root_name);
+void free_definition_scope(struct definition_scope *scope);
+
+void declaration_ref(struct declaration *declaration);
+void declaration_unref(struct declaration *declaration);
+
+void definition_ref(struct definition *definition);
+void definition_unref(struct definition *definition);
+
+/* Nameless declarations can be created by passing a NULL name */
+
+struct declaration_integer *integer_declaration_new(const char *name,
+ size_t len, int byte_order,
+ int signedness, size_t alignment);