Skip to content

Commit b885b26

Browse files
committed
add examples/io_systemd_network/io.systemd.network.varlink
1 parent 05a35e3 commit b885b26

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Provides information about network state
2+
interface io.systemd.network
3+
4+
type NetdevInfo (
5+
ifindex: int,
6+
ifname: string
7+
)
8+
9+
type Netdev (
10+
ifindex: int,
11+
ifname: string
12+
)
13+
14+
# Returns information about a network device
15+
method Info(ifindex: int) -> (info: NetdevInfo)
16+
17+
# Lists all network devices
18+
method List() -> (netdevs: Netdev[])
19+
20+
error UnknownNetworkDevice ()
21+
error InvalidParameter (field: string)

0 commit comments

Comments
 (0)