Systemd/src/libsystemd/sd-device
Zbigniew Jędrzejewski-Szmek ebcc52fad6 sd-device: reduce the number of implementations of device_read_db() we keep around
We had two very similar functions: device_read_db_aux and device_read_db,
and a number of wrappers for them:

device_read_db_aux
  ← device_read_db (in sd-device.c)
    ← all functions in sd-device.c, including sd_device_is_initialized

  ← device_read_db_force
     ← event_execute_rules_on_remove (in udev-event.c)

device_read_db (in device-private.c)
  ← functions in device_private.c (but not device_read_db_force):
    device_get_devnode_{mode,uid,gid}
    device_get_devlink_priority
    device_get_watch_handle
    device_clone_with_db
    ← called from udevadm, udev-{node,event,watch}.c

Before 7141e4f62c (sd-device: don't retry loading
uevent/db files more than once), the two implementations were the same. In that
commit, device_read_db_aux was changed. Those changes were reverted in the parent
commit, so the two implementations are now again the same except for superficial
differences. This commit removes device_read_db (in sd-device.c), and renames
device_read_db_aux to device_read_db_internal and makes everyone use this one
implementation. There should be no functional change.
2018-12-16 20:17:39 +01:00
..
device-enumerator-private.h sd-device: introduce device_enumerator_get_devices() 2018-09-10 16:47:35 +09:00
device-enumerator.c sd-device: normalize debug messages 2018-11-06 15:45:22 +09:00
device-internal.h sd-device: reduce the number of implementations of device_read_db() we keep around 2018-12-16 20:17:39 +01:00
device-monitor-private.h sd-device: introduce sd_device_monitor 2018-10-17 03:30:54 +09:00
device-monitor.c Split out part of mount-util.c into mountpoint-util.c 2018-11-29 21:03:44 +01:00
device-private.c sd-device: reduce the number of implementations of device_read_db() we keep around 2018-12-16 20:17:39 +01:00
device-private.h sd-device: reduce the number of implementations of device_read_db() we keep around 2018-12-16 20:17:39 +01:00
device-util.h sd-device: drop subsystem from log_device_*() 2018-11-06 15:45:22 +09:00
sd-device.c sd-device: reduce the number of implementations of device_read_db() we keep around 2018-12-16 20:17:39 +01:00
test-sd-device-monitor.c test: add more tests for subsystem filter 2018-11-23 06:46:29 +09:00
test-sd-device-thread.c test: add test for 'thread safety' of sd-device 2018-10-12 17:54:23 +09:00
test-sd-device.c test: also tests enumerating subsystems 2018-11-17 18:18:22 +01:00
test-udev-device-thread.c test: add test for 'thread safety' of libudev 2018-10-12 17:54:23 +09:00