From 9e272c68f51fa4e1fd0f6832bea9f82d6bceb007 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 4 Jan 2010 23:03:47 +0100 Subject: 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 --- shlibs/mount/src/mount.h.in | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'shlibs/mount/src/mount.h.in') 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 -- cgit v1.2.3-55-g7522