switched to webfuse 0.2.0

pull/1/head
Falk Werner 4 years ago
parent ee36d4ea2f
commit d9f460043b

@ -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 ..

@ -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 ..

@ -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);
}

Loading…
Cancel
Save