diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-07-05 22:48:28 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-07-06 01:44:49 +0200 |
commit | c7553c3ba4c6718ad6c626ede9085bae51dfc5bf (patch) | |
tree | c6afbbeecdd9731a20f9e4fc528a435c5ded42b2 /tunnel/src/main/proto | |
parent | 9d82a08950c3c1504024e4faf7026e482e46f071 (diff) |
WIP: add cap to grpc
Diffstat (limited to 'tunnel/src/main/proto')
-rw-r--r-- | tunnel/src/main/proto/libwg.proto | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tunnel/src/main/proto/libwg.proto b/tunnel/src/main/proto/libwg.proto index 3195690d..bf471599 100644 --- a/tunnel/src/main/proto/libwg.proto +++ b/tunnel/src/main/proto/libwg.proto @@ -18,6 +18,7 @@ service Libwg { rpc Reverse(stream ReverseRequest) returns (stream ReverseResponse); rpc IpcSet(IpcSetRequest) returns (IpcSetResponse); rpc Dhcp(DhcpRequest) returns (DhcpResponse); + rpc CapabilitiesChanged(CapabilitiesChangedRequest) returns (CapabilitiesChangedResponse); } message TunnelHandle { int32 handle = 1; } @@ -123,3 +124,16 @@ message DhcpResponse { Error error = 1; repeated Lease leases = 2; } + +message CapabilitiesChangedRequest { + enum Capability { + NONE = 0; + NOT_METERED = 11; + }; + + repeated Capability capabilities = 1; +} + +message CapabilitiesChangedResponse { + Error error = 1; +} |