I'm having trouble with Lennart Poettering's FUSE WebDAV filesystem -
http://0pointer.de/lennart/projects/fusedav/

I think the problem is that ne_simple_propfind succeeds, but the callback
function isn't run - ne_props_result

I wrote the attached test case to confirm & sure enough -
ne_simple_propfind succeeds, but callback doesn't run -


fis% ./main
200 OK
fis%


Before I go any further, is this - as I suspect - aberrant behavior? or is
neon working - I just misunderstand what it should do

I'm running Debian unstable, libneon24 0.24.7.dfsg-2

Many thanks!

Jack
/**
 * gcc -I /usr/include/neon/ -c main.c
 * gcc -o main main.o -lneon
 */

#include <ne_basic.h>
#include <ne_props.h>

const ne_propname props[] = {
	{
		"DAV:",
		"resourcetype"
	},
	{
		"http://apache.org/dav/props";,
		"executable"
	},
	{
		"DAV:",
		"getcontentlength"
	},
	{
		"DAV:",
		"getlastmodified"
	},
	{
		"DAV:",
		"creationdate"
	},
	{
		NULL,
		NULL
	}
};

static void callback(void *userdata, const char *href, const ne_prop_result_set *results) {
	fprintf(stderr, "CALLBACK: %s, %s\n", userdata, href);
}

int main(int argc, char **argv) {
	ne_session *sess = ne_session_create("http", "localhost", ne_uri_defaultport("http"));

	ne_simple_propfind(sess, "/~jablko/gallery2/main.php", NE_DEPTH_ZERO, props, callback, "foo");

	fprintf(stderr, "%s\n", ne_get_error(sess));

	return 0;
}
_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon

Reply via email to