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:
parent
ee36d4ea2f
commit
d9f460043b
@ -41,9 +41,9 @@ before_install:
|
|||||||
- cd ..
|
- cd ..
|
||||||
- cd ..
|
- cd ..
|
||||||
# libwebfuse
|
# 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
|
- tar -xf webfuse.tar.gz
|
||||||
- cd webfuse-master
|
- cd webfuse-0.2.0
|
||||||
- mkdir .build
|
- mkdir .build
|
||||||
- cd .build
|
- cd .build
|
||||||
- cmake -DWITHOUT_ADAPTER=ON ..
|
- cmake -DWITHOUT_ADAPTER=ON ..
|
||||||
|
@ -48,9 +48,9 @@ To install dependecies, see below.
|
|||||||
|
|
||||||
#### webfuse
|
#### 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
|
tar -xf webfuse.tar.gz
|
||||||
cd webfuse-master
|
cd webfuse-0.2.0
|
||||||
mkdir .build
|
mkdir .build
|
||||||
cd .build
|
cd .build
|
||||||
cmake -DWITHOUT_ADAPTER=ON ..
|
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_client_config * config = wfp_client_config_create();
|
||||||
|
|
||||||
struct wfp_static_filesystem * fs = wfp_static_filesystem_create(config);
|
struct static_filesystem * fs = static_filesystem_create(config);
|
||||||
wfp_static_filesystem_add_text(fs, "brummni/hello_world.txt", 0444, "Hello, World!\n");
|
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");
|
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");
|
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");
|
static_filesystem_add_text(fs, "bla/hello_world.txt", 0444, "Hello, World!\n");
|
||||||
wfp_static_filesystem_add_text(fs, "foo.txt", 0444, "foo\n");
|
static_filesystem_add_text(fs, "foo.txt", 0444, "foo\n");
|
||||||
wfp_static_filesystem_add_text(fs, "bar.txt", 0444, "bar\n");
|
static_filesystem_add_text(fs, "bar.txt", 0444, "bar\n");
|
||||||
|
|
||||||
struct wfp_client * client = wfp_client_create(config);
|
struct wfp_client * client = wfp_client_create(config);
|
||||||
wfp_client_connect(client, args.url);
|
wfp_client_connect(client, args.url);
|
||||||
@ -97,7 +97,7 @@ int main(int argc, char* argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
wfp_client_dispose(client);
|
wfp_client_dispose(client);
|
||||||
wfp_static_filesystem_dispose(fs);
|
static_filesystem_dispose(fs);
|
||||||
wfp_client_config_dispose(config);
|
wfp_client_config_dispose(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user