From 37350b81b5ce7c94636ea637a84af479132b6726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 21 Jun 2021 22:10:37 +0200 Subject: Move hwdb creation code to src/shared/ hwdb_update() is the main entry point, and it is called from "udevadm hwdb" and "systemd-hwdb", so it belongs in shared/. --- src/shared/hwdb-util.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/shared/hwdb-util.h (limited to 'src/shared/hwdb-util.h') diff --git a/src/shared/hwdb-util.h b/src/shared/hwdb-util.h new file mode 100644 index 0000000000..5afde74723 --- /dev/null +++ b/src/shared/hwdb-util.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +#include + +#include "sd-hwdb.h" + +bool hwdb_validate(sd_hwdb *hwdb); +int hwdb_update(const char *root, const char *hwdb_bin_dir, bool strict, bool compat); +int hwdb_query(const char *modalias); -- cgit v1.2.1