diff options
author | Karel Zak | 2010-01-04 23:03:47 +0100 |
---|---|---|
committer | Karel Zak | 2010-06-03 15:20:10 +0200 |
commit | 9e272c68f51fa4e1fd0f6832bea9f82d6bceb007 (patch) | |
tree | 14edaae5853c966764a1528254f2dad46e9c9b81 /shlibs/mount/src/mount.h.in | |
parent | libblkid: add paths and tags cache (diff) | |
download | kernel-qcow2-util-linux-9e272c68f51fa4e1fd0f6832bea9f82d6bceb007.tar.gz kernel-qcow2-util-linux-9e272c68f51fa4e1fd0f6832bea9f82d6bceb007.tar.xz kernel-qcow2-util-linux-9e272c68f51fa4e1fd0f6832bea9f82d6bceb007.zip |
libmount: add mnt_optstr_* functions
This set of functions allows to set/get/remove/append option in
unparsed options string.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/mount.h.in')
-rw-r--r-- | shlibs/mount/src/mount.h.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/shlibs/mount/src/mount.h.in b/shlibs/mount/src/mount.h.in index e0f95807e..3426729bf 100644 --- a/shlibs/mount/src/mount.h.in +++ b/shlibs/mount/src/mount.h.in @@ -56,6 +56,17 @@ extern char *mnt_resolve_path(const char *path, mnt_cache *cache); extern char *mnt_resolve_tag(const char *token, const char *value, mnt_cache *cache); extern char *mnt_resolve_spec(const char *spec, mnt_cache *cache); +/* optstr.c */ +extern int mnt_optstr_next_option(char **optstr, char **name, size_t *namesz, + char **value, size_t *valuesz); +extern int mnt_optstr_append_option(char **optstr, const char *name, + const char *value); +extern int mnt_optstr_get_option(char *optstr, const char *name, + char **value, size_t *valsz); +extern int mnt_optstr_set_option(char **optstr, const char *name, + const char *value); +extern int mnt_optstr_remove_option(char **optstr, const char *name); + #ifdef __cplusplus } #endif |