/* SPDX-License-Identifier: LGPL-2.1+ */
-/***
- Copyright 2012 Kay Sievers <kay@vrfy.org>
-***/
#include <fnmatch.h>
#include <getopt.h>
#include "hwdb-util.h"
#include "parse-util.h"
#include "string-util.h"
-#include "udev-util.h"
#include "udev.h"
static sd_hwdb *hwdb;
/* read data from another device than the device we will store the data */
if (device) {
- srcdev = udev_device_new_from_device_id(udev_device_get_udev(dev), device);
+ srcdev = udev_device_new_from_device_id(NULL, device);
if (!srcdev)
return EXIT_FAILURE;
}
}
/* called at udev startup and reload */
-static int builtin_hwdb_init(struct udev *udev) {
+static int builtin_hwdb_init(void) {
int r;
if (hwdb)
}
/* called on udev shutdown and reload request */
-static void builtin_hwdb_exit(struct udev *udev) {
+static void builtin_hwdb_exit(void) {
hwdb = sd_hwdb_unref(hwdb);
}
/* called every couple of seconds during event activity; 'true' if config has changed */
-static bool builtin_hwdb_validate(struct udev *udev) {
+static bool builtin_hwdb_validate(void) {
return hwdb_validate(hwdb);
}