An open API service indexing awesome lists of open source software.

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.

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.