From 7f2e3eea281736567af2c1d7742276fe449aba55 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 2 Feb 2022 12:29:54 +0900 Subject: [PATCH] sd-device: move device_read_uevent_file() to device-private.h Then, it can be used by our tools or daemons. --- src/libsystemd/sd-device/device-internal.h | 1 - src/libsystemd/sd-device/device-private.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libsystemd/sd-device/device-internal.h b/src/libsystemd/sd-device/device-internal.h index 76a1727b1c..49d0f0fd1f 100644 --- a/src/libsystemd/sd-device/device-internal.h +++ b/src/libsystemd/sd-device/device-internal.h @@ -101,7 +101,6 @@ int device_add_property_aux(sd_device *device, const char *key, const char *valu static inline int device_add_property_internal(sd_device *device, const char *key, const char *value) { return device_add_property_aux(device, key, value, false); } -int device_read_uevent_file(sd_device *device); int device_set_syspath(sd_device *device, const char *_syspath, bool verify); int device_set_ifindex(sd_device *device, const char *ifindex); diff --git a/src/libsystemd/sd-device/device-private.h b/src/libsystemd/sd-device/device-private.h index 04b932309c..09b2d67ab1 100644 --- a/src/libsystemd/sd-device/device-private.h +++ b/src/libsystemd/sd-device/device-private.h @@ -64,6 +64,8 @@ static inline int device_read_db(sd_device *device) { return device_read_db_internal(device, false); } +int device_read_uevent_file(sd_device *device); + sd_device_action_t device_action_from_string(const char *s) _pure_; const char *device_action_to_string(sd_device_action_t a) _const_; void dump_device_action_table(void);