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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux