1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

feat(webfuse): static file provider (#30)

* added API stub of static_filesystem

* added callback functions

* added basic directory listing

* resize filesystem if necessary

* added path stub

* adds imlementation and tests of path

* adds mock of wpf_request

* adds test implementation and some matchers

* added matcher of readdir results

* fixes default directory test

* adds implementation of static_filesystem_add and add_text

* added implementation of read

* adds implementation of filesystem_read

* corrects naming of some functions

* removes Flawfinder comments, since Flawfinder is disabled
This commit is contained in:
Falk Werner
2019-04-26 20:49:09 +02:00
committed by GitHub
parent a717248e80
commit fa78e23533
19 changed files with 1301 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ void wfp_impl_open(
struct wfp_request * request = wfp_impl_request_create(context->request, id);
context->provider->open(request, inode, flags, context->user_data); /* Flawfinder: ignore */
context->provider->open(request, inode, flags, context->user_data);
}
}
}

View File

@@ -31,7 +31,7 @@ void wfp_impl_read(
size_t length = json_integer_value(length_holder);
struct wfp_request * request = wfp_impl_request_create(context->request, id);
context->provider->read(request, inode, handle, offset, length, context->user_data); /* Flawfinder: ignore */
context->provider->read(request, inode, handle, offset, length, context->user_data);
}
}
}