summaryrefslogtreecommitdiff
path: root/src/shared/udev-util.h
diff options
context:
space:
mode:
authorYu, Li-Yu <afg984@gmail.com>2020-10-21 00:38:21 +0800
committerYu, Li-Yu <afg984@gmail.com>2020-10-29 20:15:23 +0800
commitaea3253e7121ecc91754d1d39cd7842a621f55bc (patch)
tree9eb00d65b4705133702f01cca6172197026100b6 /src/shared/udev-util.h
parent43e7dd70bc9f397427931bbc0996fc0cf4e9dc32 (diff)
downloadsystemd-aea3253e7121ecc91754d1d39cd7842a621f55bc.tar.gz
udev: escaped string syntax e"..." in rule files
* Existing valid rule files written with KEY="value" are not affected * Now, KEY=e"value\n" becomes valid. Where `\n` is a newline character * Escape sequences supported by src/basic/escape.h:cunescape() is supported
Diffstat (limited to 'src/shared/udev-util.h')
-rw-r--r--src/shared/udev-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/udev-util.h b/src/shared/udev-util.h
index 04c7ce5520..427808c63b 100644
--- a/src/shared/udev-util.h
+++ b/src/shared/udev-util.h
@@ -32,3 +32,5 @@ int device_wait_for_initialization(sd_device *device, const char *subsystem, use
int device_wait_for_devlink(const char *path, const char *subsystem, usec_t timeout, sd_device **ret);
int device_is_renaming(sd_device *dev);
bool device_for_action(sd_device *dev, DeviceAction action);
+
+int udev_rule_parse_value(char *str, char **ret_value, char **ret_endpos);