summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Trieu <jerry@advancedtelematic.com>2016-03-17 16:17:49 +0100
committerJerry Trieu <jerry@advancedtelematic.com>2016-03-22 14:24:35 +0100
commitaa02618f048140110127b6fb3c37c5b482bd48dd (patch)
tree958c818d0afcc26ca2ea9ff525e836ca43172d64
parent58f4de456bbe744b10cc69865aa04aa974297418 (diff)
downloadrvi_sota_client-aa02618f048140110127b6fb3c37c5b482bd48dd.tar.gz
Move persistence.rs to src/remote/dw.rs
-rw-r--r--src/lib.rs1
-rw-r--r--src/remote/dw.rs (renamed from src/persistence.rs)0
-rw-r--r--src/remote/mod.rs1
-rw-r--r--src/remote/parm.rs5
-rw-r--r--src/remote/svc.rs2
5 files changed, 5 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 884f1ea..8fa68b6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -61,7 +61,6 @@ macro_rules! try_msg_or {
mod base;
mod event;
mod remote;
-mod persistence;
pub mod configuration;
pub mod genivi;
diff --git a/src/persistence.rs b/src/remote/dw.rs
index bf7b296..bf7b296 100644
--- a/src/persistence.rs
+++ b/src/remote/dw.rs
diff --git a/src/remote/mod.rs b/src/remote/mod.rs
index a5b8221..eff51fc 100644
--- a/src/remote/mod.rs
+++ b/src/remote/mod.rs
@@ -1,2 +1,3 @@
+mod dw;
mod parm;
pub mod svc;
diff --git a/src/remote/parm.rs b/src/remote/parm.rs
index 44a7b86..0b7d975 100644
--- a/src/remote/parm.rs
+++ b/src/remote/parm.rs
@@ -1,7 +1,8 @@
use event::UpdateId;
use event::inbound::{InboundEvent, UpdateAvailable, GetInstalledSoftware, DownloadComplete};
-use persistence::Transfers;
-pub use super::svc::{LocalServices, BackendServices, RemoteServices, ServiceHandler};
+
+use super::dw::Transfers;
+use super::svc::{BackendServices, RemoteServices};
use std::result;
use std::sync::Mutex;
diff --git a/src/remote/svc.rs b/src/remote/svc.rs
index d50774f..92cb984 100644
--- a/src/remote/svc.rs
+++ b/src/remote/svc.rs
@@ -22,7 +22,7 @@ use event::outbound::{UpdateReport, InstalledSoftware};
use super::parm::{NotifyParams, StartParams, ChunkParams, ChunkReceived, FinishParams};
use super::parm::{ReportParams, AbortParams, ParamHandler};
-use persistence::Transfers;
+use super::dw::Transfers;
use configuration::Configuration;
/// Encodes the list of service URLs the client registered.