]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/systemd/sd-hwdb.h
libsystemd: add sd-hwdb library
authorTom Gundersen <teg@jklm.no>
Wed, 3 Dec 2014 16:02:34 +0000 (17:02 +0100)
committerTom Gundersen <teg@jklm.no>
Thu, 11 Dec 2014 12:54:35 +0000 (13:54 +0100)
commit23fbe14f503c1e98292efc4ba1238adb7dc38d80
tree51f48cee1d345ad9c2d04aff622f99be8d362998
parent94e15fdc4d9d96fa6607bfb4eaaea164a3aec417
libsystemd: add sd-hwdb library

This is libudev-hwdb, but decoupled from libudev and in the libsystemd style.

The core code is unchanged, apart from the following minor changes:

 - hwdb.bin located in /**/systemd/hwdb/ take preference over the ones located
   in /**/udev/
 - properties are stored internally in an OrderedHashmap, rather than a
   linked list.
 - a new API call allows individual properties to be queried directly, rather
   than iterating over them all
 - the iteration over properties have been moved inside the library, rather than
   exposing a list directly
 - the unused 'flags' parameter was dropped
Makefile.am
src/libsystemd/sd-hwdb/Makefile [new symlink]
src/libsystemd/sd-hwdb/hwdb-internal.h [new file with mode: 0644]
src/libsystemd/sd-hwdb/hwdb-util.h [new file with mode: 0644]
src/libsystemd/sd-hwdb/sd-hwdb.c [new file with mode: 0644]
src/systemd/sd-hwdb.h [new file with mode: 0644]