summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls Piņķis <pinkisemils@gmail.com>2018-03-21 17:11:17 +0000
committerEmīls Piņķis <pinkisemils@gmail.com>2018-03-26 15:24:43 +0100
commitf2dc9ed5596d5040e3690ed8aa2daff0bc99cec6 (patch)
treeb1f404504e980bf39bd00cccd9402d824b58dbdf
parent2ef4ff6c8dd845111867e56d639e8f48030269e8 (diff)
downloadmullvadvpn-f2dc9ed5596d5040e3690ed8aa2daff0bc99cec6.tar.xz
mullvadvpn-f2dc9ed5596d5040e3690ed8aa2daff0bc99cec6.zip
Add AppVersionProxy to mullvad-rpc
-rw-r--r--mullvad-rpc/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/mullvad-rpc/src/lib.rs b/mullvad-rpc/src/lib.rs
index ad20b1a0a3..38327aa148 100644
--- a/mullvad-rpc/src/lib.rs
+++ b/mullvad-rpc/src/lib.rs
@@ -33,6 +33,7 @@ pub use jsonrpc_client_http::{Error as HttpError, HttpHandle};
use mullvad_types::account::AccountToken;
use mullvad_types::relay_list::RelayList;
+use mullvad_types::version;
use std::collections::HashMap;
@@ -77,3 +78,8 @@ impl ProblemReportProxy<HttpHandle> {
jsonrpc_client!(pub struct RelayListProxy {
pub fn relay_list(&mut self) -> RpcRequest<RelayList>;
});
+
+jsonrpc_client!(pub struct AppVersionProxy {
+ pub fn latest_app_version(&mut self) -> RpcRequest<version::LatestReleases>;
+ pub fn is_app_version_supported(&mut self, version: &version::AppVersion) -> RpcRequest<bool>;
+});