summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-device/device-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd/sd-device/device-private.h')
-rw-r--r--src/libsystemd/sd-device/device-private.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libsystemd/sd-device/device-private.h b/src/libsystemd/sd-device/device-private.h
index 800c9ba7bd..56558b38c6 100644
--- a/src/libsystemd/sd-device/device-private.h
+++ b/src/libsystemd/sd-device/device-private.h
@@ -1,15 +1,16 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
-
#include <inttypes.h>
#include <stdbool.h>
+#include <sys/stat.h>
#include <sys/types.h>
#include "sd-device.h"
int device_new_from_nulstr(sd_device **ret, uint8_t *nulstr, size_t len);
int device_new_from_strv(sd_device **ret, char **strv);
+int device_new_from_stat_rdev(sd_device **ret, const struct stat *st);
int device_get_id_filename(sd_device *device, const char **ret);
@@ -48,4 +49,7 @@ int device_new_from_synthetic_event(sd_device **new_device, const char *syspath,
int device_tag_index(sd_device *dev, sd_device *dev_old, bool add);
int device_update_db(sd_device *device);
int device_delete_db(sd_device *device);
-int device_read_db_force(sd_device *device);
+int device_read_db_internal(sd_device *device, bool force);
+static inline int device_read_db(sd_device *device) {
+ return device_read_db_internal(device, false);
+}