summaryrefslogtreecommitdiff
path: root/src/shared/hwdb-util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-06-21 22:10:37 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-06-24 09:47:15 +0200
commit37350b81b5ce7c94636ea637a84af479132b6726 (patch)
tree0329e2de1b88d04fe611e06fd2030bfb764046f6 /src/shared/hwdb-util.h
parent26861143329bc64dbc8801094a440732c3fbb1ea (diff)
downloadsystemd-37350b81b5ce7c94636ea637a84af479132b6726.tar.gz
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/.
Diffstat (limited to 'src/shared/hwdb-util.h')
-rw-r--r--src/shared/hwdb-util.h10
1 files changed, 10 insertions, 0 deletions
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 <stdbool.h>
+
+#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);