diff options
author | Tom Gundersen <teg@jklm.no> | 2015-04-17 14:11:00 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-04-17 14:16:16 +0200 |
commit | dee5e0b6c29ca22cbf67d28fbee195d70b0dde72 (patch) | |
tree | 9b168fad51bc28c0e12efcc4847eb5293eddad2e /src/systemd/sd-device.h | |
parent | 19c9df44921bd4788bba608e9d0756f4fb1d5f89 (diff) | |
download | systemd-dee5e0b6c29ca22cbf67d28fbee195d70b0dde72.tar.gz |
sd-device: enumerator - match only on initialized devices by default
It is still possible to include uninitialized ones, but now that is opt-in. In most
cases people only want initialized devices. Exception is if you want to work without
udev running.
Suggested by David Herrmann.
Diffstat (limited to 'src/systemd/sd-device.h')
-rw-r--r-- | src/systemd/sd-device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd/sd-device.h b/src/systemd/sd-device.h index 86f767054c..38cb2a1102 100644 --- a/src/systemd/sd-device.h +++ b/src/systemd/sd-device.h @@ -92,7 +92,7 @@ int sd_device_enumerator_add_match_property(sd_device_enumerator *enumerator, co int sd_device_enumerator_add_match_sysname(sd_device_enumerator *enumerator, const char *sysname); int sd_device_enumerator_add_match_tag(sd_device_enumerator *enumerator, const char *tag); int sd_device_enumerator_add_match_parent(sd_device_enumerator *enumerator, sd_device *parent); -int sd_device_enumerator_add_match_is_initialized(sd_device_enumerator *enumerator); +int sd_device_enumerator_allow_uninitialized(sd_device_enumerator *enumerator); _SD_END_DECLARATIONS; |