[Libosinfo] [osinfo-db/libosinfo PATCH 0/6] Add support to images

Fabiano Fidêncio fidencio at redhat.com
Wed Oct 31 21:45:32 UTC 2018


This patchset adds support to images entries as part of the "os" entry
in a very similar way that's already done for both medias and trees.

It's important to note that in order to do so, we've added a libguestfs
dependency used when creating an OsinfoImage from location (more details
in the second patch of the series).

An example of how the XML will look like is:
<os>
  <image arch="x86_64">
    <variant id="cloud"/>
    <url>https://download/foo/bar.img</url>
    <product-name>Ditro Foo (Cloud Edition)</product-name>
  </image>
</os>

Last but not least, I'm cc'ing here Richard Jones and Pino Toscano in
order to get their input in the libguestfs bits ... mainly to know
whether explicitly depending on libguestfs is a good idea or not (and,
if not, to get some feedback on different approaches that could be
taken).

* osinfo-db:
  Fabiano Fidêncio (1):
    schema: Add support for pre-installed images

   data/schema/osinfo.rng.in | 29 +++++++++++++++++++++++++++++
   1 file changed, 29 insertions(+)

* libosinfo:
  Fabiano Fidêncio (5):
    Introduce OsinfoImage object
    Introduce OsinfoImageList object
    loader: Also load informations about images
    os: Introduce APIs to deal with images
    db: Introduce osinfo_db_identify_image()

   configure.ac                  |   9 +
   osinfo/Makefile.am            |   9 +-
   osinfo/libosinfo.syms         |  13 ++
   osinfo/osinfo.h               |   2 +
   osinfo/osinfo_db.c            | 111 +++++++++
   osinfo/osinfo_db.h            |   3 +
   osinfo/osinfo_image.c         | 410 ++++++++++++++++++++++++++++++++++
   osinfo/osinfo_image.h         |  91 ++++++++
   osinfo/osinfo_image_private.h |  43 ++++
   osinfo/osinfo_imagelist.c     |  90 ++++++++
   osinfo/osinfo_imagelist.h     |  77 +++++++
   osinfo/osinfo_loader.c        |  42 ++++
   osinfo/osinfo_os.c            |  37 +++
   osinfo/osinfo_os.h            |   4 +
   po/POTFILES.in                |   1 +
   15 files changed, 941 insertions(+), 1 deletion(-)
   create mode 100644 osinfo/osinfo_image.c
   create mode 100644 osinfo/osinfo_image.h
   create mode 100644 osinfo/osinfo_image_private.h
   create mode 100644 osinfo/osinfo_imagelist.c
   create mode 100644 osinfo/osinfo_imagelist.h

-- 
2.19.1




More information about the Libosinfo mailing list