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

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



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


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