]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device: move device_read_uevent_file() to device-private.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Feb 2022 03:29:54 +0000 (12:29 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Feb 2022 11:34:38 +0000 (20:34 +0900)
Then, it can be used by our tools or daemons.

src/libsystemd/sd-device/device-internal.h
src/libsystemd/sd-device/device-private.h

index 76a1727b1c154ad1f02261fde86767032ef5ac5f..49d0f0fd1f3e77673037c8d6b40e84ac52a49366 100644 (file)
@@ -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);
index 04b932309cfecf46680a44d66554f064e43962b7..09b2d67ab136878623762fc8ea296904b9f34ed9 100644 (file)
@@ -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);