parse_udev_flag(struct evdev_device *device,
		struct udev_device *udev_device,
		const char *property)
{
	const char *val;
	bool b;

	val = udev_device_get_property_value(udev_device, property);
	if (!val)
		return false;

	if (!parse_boolean_property(val, &b)) {
		evdev_log_error(device,
				"property %s has invalid value '%s'\n",
				property,
				val);
		return false;
	}

	return b;
}
parse_udev_flag(struct evdev_device *device,
		struct udev_device *udev_device,
		const char *property)
{
	const char *val;
	bool b;

	val = udev_device_get_property_value(udev_device, property);
	if (!val)
		return false;

	if (!parse_boolean_property(val, &b)) {
		evdev_log_error(device,
				"property %s has invalid value '%s'\n",
				property,
				val);
		return false;
	}

	return b;
}