From 5c094ac0150ebfef6a2c9c2c9d1c545a90ff4e96 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 16 Oct 2008 19:11:28 +0000 Subject: * Allow commas in options to be escaped with a backslash * Add new function: fuse_opt_add_opt_escaped() * Add missing fuse_reply_bmap() to the version script --- include/fuse_opt.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/fuse_opt.h') diff --git a/include/fuse_opt.h b/include/fuse_opt.h index 7ae08af..5595b4a 100644 --- a/include/fuse_opt.h +++ b/include/fuse_opt.h @@ -211,6 +211,15 @@ int fuse_opt_parse(struct fuse_args *args, void *data, */ int fuse_opt_add_opt(char **opts, const char *opt); +/** + * Add an option, escaping commas, to a comma separated option list + * + * @param opts is a pointer to an option list, may point to a NULL value + * @param opt is the option to add + * @return -1 on allocation error, 0 on success + */ +int fuse_opt_add_opt_escaped(char **opts, const char *opt); + /** * Add an argument to a NULL terminated argument vector * -- cgit v1.2.3