mirror of
https://github.com/systemd/systemd
synced 2024-10-15 20:45:09 +00:00
sd-device: make device_add_property_internal() inline
This commit is contained in:
parent
7a1fe27f81
commit
9e25cca130
|
@ -88,7 +88,9 @@ struct sd_device {
|
||||||
|
|
||||||
int device_new_aux(sd_device **ret);
|
int device_new_aux(sd_device **ret);
|
||||||
int device_add_property_aux(sd_device *device, const char *key, const char *value, bool db);
|
int device_add_property_aux(sd_device *device, const char *key, const char *value, bool db);
|
||||||
int device_add_property_internal(sd_device *device, const char *key, const char *value);
|
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_read_uevent_file(sd_device *device);
|
||||||
|
|
||||||
int device_set_syspath(sd_device *device, const char *_syspath, bool verify);
|
int device_set_syspath(sd_device *device, const char *_syspath, bool verify);
|
||||||
|
|
|
@ -128,10 +128,6 @@ int device_add_property_aux(sd_device *device, const char *_key, const char *_va
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
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_set_syspath(sd_device *device, const char *_syspath, bool verify) {
|
int device_set_syspath(sd_device *device, const char *_syspath, bool verify) {
|
||||||
_cleanup_free_ char *syspath = NULL;
|
_cleanup_free_ char *syspath = NULL;
|
||||||
const char *devpath;
|
const char *devpath;
|
||||||
|
|
Loading…
Reference in a new issue