Use it here to validate the generated metadata.

2005-05-24  Matthias Clasen  <mclasen@redhat.com>

	* src/compiler.c (main): Use it here to validate
	the generated metadata.

	* src/gmetadata.[hc]: Add code to validate a
	metadata blob.
This commit is contained in:
Matthias Clasen 2005-05-24 15:36:42 +00:00 committed by Evan Welsh
parent 30d7eb93c5
commit f8e471a64c

View File

@ -214,10 +214,14 @@ main (int argc, char ** argv)
g_idl_module_build_metadata (module, modules, &metadata, &len);
if (metadata == NULL)
{
g_error ("failed to build metadata for module '%s'\n", module->name);
g_error ("Failed to build metadata for module '%s'\n", module->name);
continue;
}
if (!g_metadata_validate (metadata, len, &error))
g_error ("Invalid metadata for module '%s': %s",
module->name, error->message);
if (!mname && (m->next || m->prev) && output)
prefix = module->name;