From 67d63b28ea2e692c857b9882b6e6b26201d4c65f Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Wed, 5 Jul 2023 22:48:28 +0200 Subject: WIP: add cap to grpc --- tunnel/src/main/proto/libwg.proto | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tunnel/src/main/proto/libwg.proto') 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; +} -- cgit v1.2.3