Home | History | Annotate | Download | only in librefuse

Lines Matching refs:opts

143 static int add_opt(char **opts, const char *opt, bool escape)
145 const size_t orig_len = *opts == NULL ? 0 : strlen(*opts);
146 char* buf = realloc(*opts, orig_len + 1 + strlen(opt) * 2 + 1);
151 *opts = buf;
169 int fuse_opt_add_opt(char **opts, const char *opt)
171 DPRINTF(("%s: arguments passed: [opts=%s] [opt=%s]\n",
172 __func__, *opts, opt));
173 return add_opt(opts, opt, false);
176 int fuse_opt_add_opt_escaped(char **opts, const char *opt)
178 DPRINTF(("%s: arguments passed: [opts=%s] [opt=%s]\n",
179 __func__, *opts, opt));
180 return add_opt(opts, opt, true);
213 find_opt(const struct fuse_opt *opts, const char *opt, ssize_t *sep_idx)
215 for (; opts != NULL && opts->templ != NULL; opts++) {
216 if (match_templ(opts->templ, opt, sep_idx))
217 return opts;
223 * Returns 1 if opt was matched with any option from opts,
227 fuse_opt_match(const struct fuse_opt *opts, const char *opt)
229 return find_opt(opts, opt, NULL) != NULL ? 1 : 0;
337 const struct fuse_opt *opts, fuse_opt_proc_t proc, bool is_opt)
340 const struct fuse_opt *opt = find_opt(opts, arg, &sep_idx);
394 const struct fuse_opt *opts, fuse_opt_proc_t proc)
408 data, opts, proc, true) == -1) {
427 if (parse_arg(args, argi, opt, outargs, data, opts, proc, true) == -1) {
438 const struct fuse_opt *opts, fuse_opt_proc_t proc)
466 data, opts, proc) == -1)
474 data, opts, proc) == -1)
487 data, opts, proc, false) == -1)
503 const struct fuse_opt *opts, fuse_opt_proc_t proc)
511 rv = parse_all(args, &outargs, data, opts, proc);