sd_hwdb_new, sd_hwdb_new_from_path, sd_hwdb_ref, sd_hwdb_unref — Create a new hwdb object and create or destroy references to it
|const char *path,|
sd_hwdb_new() creates a new hwdb object to access the binary hwdb
database. Upon initialization, the file containing the binary representation of the hardware database is
located and opened. The new object is returned in
sd_hwdb_new_from_path() may be used to specify the path from which the binary
hardware database should be opened.
hwdb object is reference counted.
sd_hwdb_unref() may be used to get a new reference or destroy an existing reference
to an object. The caller must dispose of the reference acquired with
sd_hwdb_unref() when done with the object.
return a non-negative integer. On failure, a negative errno-style error code is returned.
sd_hwdb_ref() always returns the argument.
sd_hwdb_unref() always returns
These APIs are implemented as a shared
library, which can be compiled and linked to with the