mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
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:
parent
30d7eb93c5
commit
f8e471a64c
@ -214,10 +214,14 @@ main (int argc, char ** argv)
|
|||||||
g_idl_module_build_metadata (module, modules, &metadata, &len);
|
g_idl_module_build_metadata (module, modules, &metadata, &len);
|
||||||
if (metadata == NULL)
|
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;
|
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)
|
if (!mname && (m->next || m->prev) && output)
|
||||||
prefix = module->name;
|
prefix = module->name;
|
||||||
|
Loading…
Reference in New Issue
Block a user