X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=udev.h;h=64510ed35f8dd40d09363dd4488d31db1389421a;hp=454ea4280b53992fc76a97bea0334f5c7c385d78;hb=285e2a24f67b1c09d7b4c54587802fc0a9d623eb;hpb=2f2c4fa442f33d7eaee02eda016d6149b9aa0be6 diff --git a/udev.h b/udev.h index 454ea4280..64510ed35 100644 --- a/udev.h +++ b/udev.h @@ -34,9 +34,9 @@ #define NAME_SIZE 256 #define VALUE_SIZE 128 -#define ALLOWED_CHARS "#+-.:=@_%" +#define ALLOWED_CHARS "#+-.:=@_" #define ALLOWED_CHARS_FILE ALLOWED_CHARS "/" -#define ALLOWED_CHARS_INPUT ALLOWED_CHARS " $/?," +#define ALLOWED_CHARS_INPUT ALLOWED_CHARS_FILE " $%?," #define DEFAULT_PARTITIONS_COUNT 15 #define UDEV_ALARM_TIMEOUT 180 @@ -119,6 +119,7 @@ extern struct sysfs_device *sysfs_device_get_parent(struct sysfs_device *dev); extern struct sysfs_device *sysfs_device_get_parent_with_subsystem(struct sysfs_device *dev, const char *subsystem); extern char *sysfs_attr_get_value(const char *devpath, const char *attr_name); extern int sysfs_resolve_link(char *path, size_t size); +extern int sysfs_lookup_devpath_by_subsys_id(char *devpath, size_t len, const char *subsystem, const char *id); /* udev_node.c */ extern int udev_node_mknod(struct udevice *udev, const char *file, dev_t devt, mode_t mode, uid_t uid, gid_t gid);