1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

sd-device: move device_read_uevent_file() to device-private.h

Then, it can be used by our tools or daemons.
This commit is contained in:
Yu Watanabe 2022-02-02 12:29:54 +09:00
parent f30943c12f
commit 7f2e3eea28
2 changed files with 2 additions and 1 deletions

View 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);

View 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);