diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-03-13 23:44:04 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-06-15 09:36:45 +0000 |
commit | f97762597454c90a9671a3e5eb8d8a59b466e659 (patch) | |
tree | 0bf98ef31d624af9c78290e7aa72879b53a7fa8a /src | |
parent | 812263927a9fbcca6cf94563685efa310a734dbe (diff) | |
download | crosvm-f97762597454c90a9671a3e5eb8d8a59b466e659.tar crosvm-f97762597454c90a9671a3e5eb8d8a59b466e659.tar.gz crosvm-f97762597454c90a9671a3e5eb8d8a59b466e659.tar.bz2 crosvm-f97762597454c90a9671a3e5eb8d8a59b466e659.tar.lz crosvm-f97762597454c90a9671a3e5eb8d8a59b466e659.tar.xz crosvm-f97762597454c90a9671a3e5eb8d8a59b466e659.tar.zst crosvm-f97762597454c90a9671a3e5eb8d8a59b466e659.zip |
read_config
Diffstat (limited to 'src')
-rw-r--r-- | src/wl.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wl.rs b/src/wl.rs index 08d69f8..0a8bd0a 100644 --- a/src/wl.rs +++ b/src/wl.rs @@ -68,6 +68,14 @@ fn main() { Ok(MsgOnSocket(MsgOnSocketRequest::AckFeatures(value))) => wl.ack_features(value), + Ok(Bincode(BincodeRequest::ReadConfig { offset, len })) => { + let mut data = vec![0; len]; + wl.read_config(offset, &mut data); + if let Err(e) = msg_socket.send(BincodeResponse::ReadConfig(data)) { + panic!("replying to ReadConfig failed: {}", e); + } + } + Ok(Bincode(BincodeRequest::WriteConfig { offset, ref data })) => { wl.write_config(offset, data) } |