Skip to content
Commit b8cbfbe0 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

pnp-ids: Use udev's hwdb to query PNP IDs

hwdb has its own database which it compiles to binary, so that:
1) initialisation is practically free
See https://git.gnome.org/browse/gnome-settings-daemon/commit/gnome-settings-daemon/gnome-settings-manager.c?id=d8c158e74caea048dea5a38232bd87c1c7a78a70
2) lookups are also quick, as they use a binary DB
3) we don't have to maintain our own copy of the database
4) allows model lookup rather than simply vendor lookup, when the
   database contains that information

The only problem being that non-Linux OSes will need reimplement this
section of the code. This will be on top of the usual downstream patches
they ship for a number of components.

https://bugzilla.gnome.org/show_bug.cgi?id=590059
parent 7bba17f1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment