return r;
}
+int device_is_processing(sd_device *dev) {
+ int r;
+
+ assert(dev);
+
+ r = device_get_property_bool(dev, "ID_PROCESSING");
+ if (r == -ENOENT)
+ return false; /* defaults to false */
+
+ return r;
+}
+
bool device_for_action(sd_device *dev, sd_device_action_t a) {
sd_device_action_t b;
int device_wait_for_initialization(sd_device *device, const char *subsystem, usec_t timeout_usec, sd_device **ret);
int device_wait_for_devlink(const char *path, const char *subsystem, usec_t timeout_usec, sd_device **ret);
int device_is_renaming(sd_device *dev);
+int device_is_processing(sd_device *dev);
bool device_for_action(sd_device *dev, sd_device_action_t action);