Allow medias to specify the size of ISO9660 volumes. --- data/schemas/libosinfo.rng | 5 +++++ osinfo/osinfo_loader.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/data/schemas/libosinfo.rng b/data/schemas/libosinfo.rng index 1580d9a..db6e145 100644 --- a/data/schemas/libosinfo.rng +++ b/data/schemas/libosinfo.rng @@ -310,6 +310,11 @@ <text/> </element> </optional> + <optional> + <element name='volume-size'> + <ref name='num'/> + </element> + </optional> <zeroOrMore> <ref name='media-lang'/> </zeroOrMore> diff --git a/osinfo/osinfo_loader.c b/osinfo/osinfo_loader.c index 845eda3..4e8f942 100644 --- a/osinfo/osinfo_loader.c +++ b/osinfo/osinfo_loader.c @@ -999,7 +999,9 @@ static OsinfoMedia *osinfo_loader_media(OsinfoLoader *loader, strcmp((const gchar *)nodes[i]->name, OSINFO_MEDIA_PROP_APPLICATION_ID) != 0 && strcmp((const gchar *)nodes[i]->name, - OSINFO_MEDIA_PROP_LANG) != 0)) + OSINFO_MEDIA_PROP_LANG) != 0 && + strcmp((const gchar *)nodes[i]->name, + OSINFO_MEDIA_PROP_VOLUME_SIZE) != 0)) continue; if (strcmp((const gchar *)nodes[i]->name, -- 2.1.0 _______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo