| 1 |
# Example Varlink service |
| 2 |
interface org.example.more |
| 3 |
|
| 4 |
# Enum, returning either start, progress or end |
| 5 |
# progress: [0-100] |
| 6 |
type State ( |
| 7 |
start: ?bool, |
| 8 |
progress: ?int, |
| 9 |
end: ?bool |
| 10 |
) |
| 11 |
|
| 12 |
# Returns the same string |
| 13 |
method Ping(ping: string) -> (pong: string) |
| 14 |
|
| 15 |
# Dummy progress method |
| 16 |
# n: number of progress steps |
| 17 |
method TestMore(n: int) -> (state: State) |
| 18 |
|
| 19 |
# Stop serving |
| 20 |
method StopServing(reason: ?string) -> () |
| 21 |
|
| 22 |
# Something failed in TestMore |
| 23 |
error TestMoreError (reason: string) |