1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00

switched to webfuse 0.2.0

This commit is contained in:
Falk Werner 2020-03-01 20:31:41 +01:00
parent ee36d4ea2f
commit d9f460043b
3 changed files with 12 additions and 12 deletions

View File

@ -41,9 +41,9 @@ before_install:
- cd ..
- cd ..
# libwebfuse
- wget https://github.com/falk-werner/webfuse/archive/master.tar.gz -O webfuse.tar.gz
- wget https://github.com/falk-werner/webfuse/archive/v0.2.0.tar.gz -O webfuse.tar.gz
- tar -xf webfuse.tar.gz
- cd webfuse-master
- cd webfuse-0.2.0
- mkdir .build
- cd .build
- cmake -DWITHOUT_ADAPTER=ON ..

View File

@ -48,9 +48,9 @@ To install dependecies, see below.
#### webfuse
wget https://github.com/falk-werner/webfuse/archive/master.tar.gz -O webfuse.tar.gz
wget https://github.com/falk-werner/webfuse/archive/v0.2.0.tar.gz -O webfuse.tar.gz
tar -xf webfuse.tar.gz
cd webfuse-master
cd webfuse-0.2.0
mkdir .build
cd .build
cmake -DWITHOUT_ADAPTER=ON ..

View File

@ -80,13 +80,13 @@ int main(int argc, char* argv[])
{
struct wfp_client_config * config = wfp_client_config_create();
struct wfp_static_filesystem * fs = wfp_static_filesystem_create(config);
wfp_static_filesystem_add_text(fs, "brummni/hello_world.txt", 0444, "Hello, World!\n");
wfp_static_filesystem_add_text(fs, "brummni/hello_bob.txt", 0444, "Hello, Bob!\n");
wfp_static_filesystem_add_text(fs, "brummni/hello_bob.txt", 0444, "Hello, Alice!\n");
wfp_static_filesystem_add_text(fs, "bla/hello_world.txt", 0444, "Hello, World!\n");
wfp_static_filesystem_add_text(fs, "foo.txt", 0444, "foo\n");
wfp_static_filesystem_add_text(fs, "bar.txt", 0444, "bar\n");
struct static_filesystem * fs = static_filesystem_create(config);
static_filesystem_add_text(fs, "brummni/hello_world.txt", 0444, "Hello, World!\n");
static_filesystem_add_text(fs, "brummni/hello_bob.txt", 0444, "Hello, Bob!\n");
static_filesystem_add_text(fs, "brummni/hello_bob.txt", 0444, "Hello, Alice!\n");
static_filesystem_add_text(fs, "bla/hello_world.txt", 0444, "Hello, World!\n");
static_filesystem_add_text(fs, "foo.txt", 0444, "foo\n");
static_filesystem_add_text(fs, "bar.txt", 0444, "bar\n");
struct wfp_client * client = wfp_client_create(config);
wfp_client_connect(client, args.url);
@ -97,7 +97,7 @@ int main(int argc, char* argv[])
}
wfp_client_dispose(client);
wfp_static_filesystem_dispose(fs);
static_filesystem_dispose(fs);
wfp_client_config_dispose(config);
}