summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-device/device-enumerator-private.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-04-17 14:11:00 +0200
committerTom Gundersen <teg@jklm.no>2015-04-17 14:16:16 +0200
commitdee5e0b6c29ca22cbf67d28fbee195d70b0dde72 (patch)
tree9b168fad51bc28c0e12efcc4847eb5293eddad2e /src/libsystemd/sd-device/device-enumerator-private.h
parent19c9df44921bd4788bba608e9d0756f4fb1d5f89 (diff)
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/libsystemd/sd-device/device-enumerator-private.h')
-rw-r--r--src/libsystemd/sd-device/device-enumerator-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd/sd-device/device-enumerator-private.h b/src/libsystemd/sd-device/device-enumerator-private.h
index 4d0a2d3c79..8d04640dc7 100644
--- a/src/libsystemd/sd-device/device-enumerator-private.h
+++ b/src/libsystemd/sd-device/device-enumerator-private.h
@@ -26,6 +26,7 @@
int device_enumerator_scan_devices(sd_device_enumerator *enumeartor);
int device_enumerator_scan_subsystems(sd_device_enumerator *enumeartor);
int device_enumerator_add_device(sd_device_enumerator *enumerator, sd_device *device);
+int device_enumerator_add_match_is_initialized(sd_device_enumerator *enumerator);
sd_device *device_enumerator_get_first(sd_device_enumerator *enumerator);
sd_device *device_enumerator_get_next(sd_device_enumerator *enumerator);