[Libosinfo] [libosinfo PATCH v4 08/10] loader: Load Images information
Pino Toscano
ptoscano at redhat.com
Fri Nov 23 13:26:31 UTC 2018
On Friday, 23 November 2018 11:54:42 CET Fabiano Fidêncio wrote:
> +static OsinfoImage *osinfo_loader_image(OsinfoLoader *loader,
> + xmlXPathContextPtr ctxt,
> + xmlNodePtr root,
> + const gchar *id,
> + GError **err)
> +{
> + const OsinfoEntityKey keys[] = {
> + { OSINFO_IMAGE_PROP_URL, G_TYPE_STRING },
> + { NULL, G_TYPE_INVALID }
> + };
> +
> + gchar *arch = (gchar *)xmlGetProp(root, BAD_CAST "arch");
> + gchar *format = (gchar *)xmlGetProp(root, BAD_CAST "format");
Should the various OSINFO_IMAGE_PROP_* defines be used here?
--
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20181123/9aedc83e/attachment.sig>
More information about the Libosinfo
mailing list