[Libosinfo] [libosinfo 0/6] Add generic libosinfo error domain

Christophe Fergeau cfergeau at redhat.com
Thu Sep 20 13:59:16 UTC 2018


Some parts of libosinfo are using a NULL domain when creating a GError, but
this triggers runtime warnings with glib. The main goal of this patch series is
to adress that.

Christophe

Christophe Fergeau (6):
  loader: Rename OSINFO_ERROR to OSINFO_LOADER_SET_ERROR
  loader: Use OSINFO_LOADER_SET_ERROR in a few more places
  loader: Introduce OSINFO_ERROR
  Use OSINFO_ERROR in more places
  install-script: Use g_set_error_literal where appropriate
  install-script: Add propagate_libxml_error() helper

 osinfo/libosinfo.syms          |  5 +++
 osinfo/osinfo_install_script.c | 68 +++++++++++++++++++---------------
 osinfo/osinfo_loader.c         | 66 ++++++++++++++++++++-------------
 osinfo/osinfo_loader.h         |  8 ++++
 tools/osinfo-install-script.c  |  2 +-
 tools/osinfo-query.c           |  6 +--
 6 files changed, 96 insertions(+), 59 deletions(-)

-- 
2.19.0




More information about the Libosinfo mailing list