summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a33ac71)
raw | patch | inline | side by side (parent: a33ac71)
author | Lennart Poettering <lennart@poettering.net> | |
Sun, 2 Apr 2006 15:11:25 +0000 (15:11 +0000) | ||
committer | Lennart Poettering <lennart@poettering.net> | |
Sun, 2 Apr 2006 15:11:25 +0000 (15:11 +0000) |
src/fusedav.c | patch | blob | history |
diff --git a/src/fusedav.c b/src/fusedav.c
index bf1d43cf31d7e8636057c4550fe233e968717188..2d04c51ad779448e910416cbca68d0ba4205c604 100644 (file)
--- a/src/fusedav.c
+++ b/src/fusedav.c
return fn;
}
-static void getdir_propfind_callback(void *userdata, const char *href, const ne_prop_result_set *results) {
+static void getdir_propfind_callback(void *userdata, const ne_uri *u, const ne_prop_result_set *results) {
struct fill_info *f = userdata;
struct stat st;
char fn[PATH_MAX], *t;
@@ -236,7 +236,7 @@ static void getdir_propfind_callback(void *userdata, const char *href, const ne_
assert(f);
- strncpy(fn, href, sizeof(fn));
+ strncpy(fn, u->path, sizeof(fn));
fn[sizeof(fn)-1] = 0;
strip_trailing_slash(fn, &is_dir);
return 0;
}
-static void getattr_propfind_callback(void *userdata, const char *href, const ne_prop_result_set *results) {
+static void getattr_propfind_callback(void *userdata, const ne_uri *u, const ne_prop_result_set *results) {
struct stat *st = (struct stat*) userdata;
char fn[PATH_MAX];
int is_dir;
assert(st);
- strncpy(fn, href, sizeof(fn));
+ strncpy(fn, u->path, sizeof(fn));
fn[sizeof(fn)-1] = 0;
strip_trailing_slash(fn, &is_dir);
}
}
-static void listxattr_propfind_callback(void *userdata, __unused const char *href, const ne_prop_result_set *results) {
+static void listxattr_propfind_callback(void *userdata, __unused const ne_uri *u, const ne_prop_result_set *results) {
struct listxattr_info *l = userdata;
ne_propset_iterate(results, listxattr_iterator, l);
}
return 0;
}
-static void getxattr_propfind_callback(void *userdata, __unused const char *href, const ne_prop_result_set *results) {
+static void getxattr_propfind_callback(void *userdata, __unused const ne_uri *u, const ne_prop_result_set *results) {
struct getxattr_info *g = userdata;
ne_propset_iterate(results, getxattr_iterator, g);
}