Subject: CVS commit: src/lib/librefuse
To: None <source-changes@NetBSD.org>
From: Juan Romero Pardines <xtraeme@netbsd.org>
List: source-changes
Date: 02/28/2007 16:23:00
Module Name:	src
Committed By:	xtraeme
Date:		Wed Feb 28 16:23:00 UTC 2007

Modified Files:
	src/lib/librefuse: Makefile fuse.h refuse.c
Added Files:
	src/lib/librefuse: fuse_opt.h refuse_opt.c

Log Message:
* Move fuse_opt* defs and prototypes into fuse_opt.h.
* Move fuse_opt* funcs from refuse.c into refuse_opt.c.

Implement fuse_opt_parse() and fuse_opt_match(). And make the other
functions just dummy, always returning 0 (I added debugging printfs
to see what the application is trying to do).

For now there are two things that do not work in fuse_opt:

	* options accepting arguments, i.e -otimeout=%u or -ofile=%s.
	* options without arguments are not enabled, just parsed.

At least now curlftpfs works, even with verbose mode! :-)

Ok'ed by pooka.


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 src/lib/librefuse/Makefile
cvs rdiff -r1.8 -r1.9 src/lib/librefuse/fuse.h
cvs rdiff -r0 -r1.1 src/lib/librefuse/fuse_opt.h \
    src/lib/librefuse/refuse_opt.c
cvs rdiff -r1.39 -r1.40 src/lib/librefuse/refuse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.