https://github.com/kgilmer/vala-libfuse-helloworld-sample
A simplified Vala translation of the libfuse helloworld example.
https://github.com/kgilmer/vala-libfuse-helloworld-sample
example libfuse vala
Last synced: about 1 month ago
JSON representation
A simplified Vala translation of the libfuse helloworld example.
- Host: GitHub
- URL: https://github.com/kgilmer/vala-libfuse-helloworld-sample
- Owner: kgilmer
- License: mit
- Created: 2019-12-07T18:35:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-07T18:49:28.000Z (over 5 years ago)
- Last Synced: 2025-01-30T07:30:02.807Z (3 months ago)
- Topics: example, libfuse, vala
- Language: Vala
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vala libfuse helloworld sample
This is a simplified direct translation of the "hello world" [libfuse example in C](https://github.com/libfuse/libfuse/blob/master/example/hello.c). It does not allow for the filename nor contents to be provided on the command-line at invocation time, otherwise it should be equivelent.
# Build
## Prerequisites
* Meson
* Ninja
* libfuse
* valac## Build
```bash
$ meson build
$ cd build
$ ninja
```
## Run```bash
$ sudo mkdir /tmp/fuse-test
$ sudo chown /mnt/fuse-test
$ ./src/fuse-example /mnt/fuse-test
```## Test
```bash
$ ls /mnt/fuse-test/
hello
$ cat /mnt/fuse-test/hello
Hello World!
```# Notes
Special thanks to Guillaume Poirier-Morency for help with setting C symbols via Meson.