c.fuse.fuse_opt

Undocumented in source.

Members

Aliases

fuse_opt_proc_t
alias fuse_opt_proc_t = int function(void* data, const char* arg, int key, fuse_args* outargs)

Processing function

Functions

FUSE_ARGS_INIT
fuse_args FUSE_ARGS_INIT(int argc, char** argv)

Initializer for 'struct fuse_args'

FUSE_OPT_KEY
fuse_opt FUSE_OPT_KEY(char* templ, int key)

Key option. In case of a match, the processing function will be called with the specified key.

fuse_opt_add_arg
int fuse_opt_add_arg(fuse_args* args, char* arg)

Add an argument to a NULL terminated argument vector

fuse_opt_add_opt
int fuse_opt_add_opt(char** opts, char* opt)

Add an option to a comma separated option list

fuse_opt_add_opt_escaped
int fuse_opt_add_opt_escaped(char** opts, char* opt)

Add an option, escaping commas, to a comma separated option list

fuse_opt_free_args
void fuse_opt_free_args(fuse_args* args)

Free the contents of argument list

fuse_opt_insert_arg
int fuse_opt_insert_arg(fuse_args* args, int pos, char* arg)

Add an argument at the specified position in a NULL terminated argument vector

fuse_opt_match
int fuse_opt_match(fuse_opt* opts, char* opt)

Check if an option matches

fuse_opt_parse
int fuse_opt_parse(fuse_args* args, void* data, fuse_opt* opts, fuse_opt_proc_t proc)

Option parsing function

Manifest constants

FUSE_OPT_END
enum FUSE_OPT_END;

Last option. An array of 'struct fuse_opt' must end with a NULL template value

FUSE_OPT_KEY_DISCARD
enum FUSE_OPT_KEY_DISCARD;

Special key value for options to discard

FUSE_OPT_KEY_KEEP
enum FUSE_OPT_KEY_KEEP;

Special key value for options to keep

FUSE_OPT_KEY_NONOPT
enum FUSE_OPT_KEY_NONOPT;

Key value passed to the processing function for all non-options

FUSE_OPT_KEY_OPT
enum FUSE_OPT_KEY_OPT;

Key value passed to the processing function if an option did not match any template

Structs

fuse_args
struct fuse_args

Argument list

fuse_opt
struct fuse_opt

Option description

Meta