From: Yu Watanabe Date: Wed, 2 Feb 2022 03:29:54 +0000 (+0900) Subject: sd-device: move device_read_uevent_file() to device-private.h X-Git-Tag: v251-rc1~371^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f2e3eea281736567af2c1d7742276fe449aba55;p=thirdparty%2Fsystemd.git sd-device: move device_read_uevent_file() to device-private.h Then, it can be used by our tools or daemons. --- diff --git a/src/libsystemd/sd-device/device-internal.h b/src/libsystemd/sd-device/device-internal.h index 76a1727b1c1..49d0f0fd1f3 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 04b932309cf..09b2d67ab13 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);