[Libosinfo] [libosinfo PATCH 0/3] Add osinfo_db_identify_tree() API

Fabiano Fidêncio fidencio at redhat.com
Wed Jun 26 09:16:07 UTC 2019


Similarly to osinfo_db_identify_media(), let's add
osinfo_db_identify_tree() API and be more consistent on how the apps
should check whether a media/tree is known.

More than that, this simplifies a little bit the code on the apps side.

Together with this change, let's also deprecate
osinfo_db_guess_os_from_tree() and "force" the apps to use the new and
simpler API for tree detection.

Fabiano Fidêncio (3):
  db: Add identify_tree() API
  tools,detect: Use osinfo_db_identify_tree()
  db: deprecate osinfo_db_guess_os_from_tree()

 osinfo/libosinfo.syms |   2 +
 osinfo/osinfo_db.c    | 140 ++++++++++++++++++++++++++++++++++++++----
 osinfo/osinfo_db.h    |   3 +
 tools/osinfo-detect.c |  22 +++----
 4 files changed, 143 insertions(+), 24 deletions(-)

-- 
2.21.0




More information about the Libosinfo mailing list