diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-05-17 20:09:24 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-05-17 20:09:24 +0200 |
commit | b10941c08db89f52038e19ee8a29f26d7808a448 (patch) | |
tree | a456c4e24d9ed0a79ad3f10afd29e353336c2b41 /extras/volume_id/lib/libvolume_id.h | |
parent | 2f2c4fa442f33d7eaee02eda016d6149b9aa0be6 (diff) |
volume_id: add and export string encoding function
Needed for mount(8) to lookup LABEL=* in /dev/disk/by-label/*. Characters
not suited for a filename will be escaped and the encoded LABEL=* string
is able to find the corresponding symlink.
Diffstat (limited to 'extras/volume_id/lib/libvolume_id.h')
-rw-r--r-- | extras/volume_id/lib/libvolume_id.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/volume_id/lib/libvolume_id.h b/extras/volume_id/lib/libvolume_id.h index c0ab29e0f7..19aee68d01 100644 --- a/extras/volume_id/lib/libvolume_id.h +++ b/extras/volume_id/lib/libvolume_id.h @@ -40,6 +40,7 @@ extern int volume_id_get_uuid_raw(struct volume_id *id, const uint8_t **uuid, si extern int volume_id_get_usage(struct volume_id *id, const char **usage); extern int volume_id_get_type(struct volume_id *id, const char **type); extern int volume_id_get_type_version(struct volume_id *id, const char **type_version); +extern int volume_id_encode_string(const char *str, char *str_enc, size_t len); /* * Note: everything below will be made private or removed from |