[][src]Type Definition yarf_sys::fuse_opt_proc_t

type fuse_opt_proc_t = Option<unsafe extern "C" fn(data: *mut c_void, arg: *const c_char, key: c_int, outargs: *mut fuse_args) -> c_int>;

Processing function

This function is called if

  • option did not match any 'struct fuse_opt'
  • argument is a non-option
  • option did match and offset was set to -1

The 'arg' parameter will always contain the whole argument or option including the parameter if exists. A two-argument option ("-x foo") is always converted to single arguemnt option of the form "-xfoo" before this function is called.

Options of the form '-ofoo' are passed to this function without the '-o' prefix.

The return value of this function determines whether this argument is to be inserted into the output argument vector, or discarded.

@param data is the user data passed to the fuse_opt_parse() function @param arg is the whole argument or option @param key determines why the processing function was called @param outargs the current output argument list @return -1 on error, 0 if arg is to be discarded, 1 if arg should be kept