Skip to content

Commit

Permalink
Merge pull request #150 from main--/151
Browse files Browse the repository at this point in the history
Implement cli
  • Loading branch information
oberien authored Aug 6, 2017
2 parents 3ed5671 + 4f583d3 commit 95688e0
Show file tree
Hide file tree
Showing 6 changed files with 220 additions and 46 deletions.
86 changes: 86 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 31 additions & 31 deletions guest-agent/VfioService/VfioService/Protocol.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: clientpipe-proto/src/protocol.proto
// source: windows-gaming/driver/clientpipe-proto/src/protocol.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code

Expand All @@ -9,11 +9,11 @@
using scg = global::System.Collections.Generic;
namespace ClientpipeProtocol {

/// <summary>Holder for reflection information generated from clientpipe-proto/src/protocol.proto</summary>
/// <summary>Holder for reflection information generated from windows-gaming/driver/clientpipe-proto/src/protocol.proto</summary>
public static partial class ProtocolReflection {

#region Descriptor
/// <summary>File descriptor for clientpipe-proto/src/protocol.proto</summary>
/// <summary>File descriptor for windows-gaming/driver/clientpipe-proto/src/protocol.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
Expand All @@ -22,34 +22,34 @@ public static partial class ProtocolReflection {
static ProtocolReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiNjbGllbnRwaXBlLXByb3RvL3NyYy9wcm90b2NvbC5wcm90bxITY2xpZW50",
"cGlwZV9wcm90b2NvbBobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvIvUB",
"ChBDbGlwYm9hcmRNZXNzYWdlEjAKDmdyYWJfY2xpcGJvYXJkGAEgASgLMhYu",
"Z29vZ2xlLnByb3RvYnVmLkVtcHR5SAASSAoacmVxdWVzdF9jbGlwYm9hcmRf",
"Y29udGVudHMYAiABKA4yIi5jbGllbnRwaXBlX3Byb3RvY29sLkNsaXBib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CgRwaW5n",
"GAEgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SAASOgoJY2xpcGJvYXJk",
"GAIgASgLMiUuY2xpZW50cGlwZV9wcm90b2NvbC5DbGlwYm9hcmRNZXNzYWdl",
"SAASMwoRcmVsZWFzZV9tb2RpZmllcnMYECABKAsyFi5nb29nbGUucHJvdG9i",
"dWYuRW1wdHlIABIpCgdzdXNwZW5kGBEgASgLMhYuZ29vZ2xlLnByb3RvYnVm",
"LkVtcHR5SAASPwoQcmVnaXN0ZXJfaG90X2tleRgSIAEoCzIjLmNsaWVudHBp",
"cGVfcHJvdG9jb2wuUmVnaXN0ZXJIb3RLZXlIABI4ChJzZXRfbW91c2VfcG9z",
"aXRpb24YEyABKAsyGi5jbGllbnRwaXBlX3Byb3RvY29sLlBvaW50SABCCQoH",
"bWVzc2FnZSK9AgoHR2FDbWRJbhImCgRwb25nGAEgASgLMhYuZ29vZ2xlLnBy",
"b3RvYnVmLkVtcHR5SAASLQoLcmVwb3J0X2Jvb3QYAiABKAsyFi5nb29nbGUu",
"cHJvdG9idWYuRW1wdHlIABI6CgljbGlwYm9hcmQYAyABKAsyJS5jbGllbnRw",
"aXBlX3Byb3RvY29sLkNsaXBib2FyZE1lc3NhZ2VIABIsCgpzdXNwZW5kaW5n",
"GBAgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SAASEQoHaG90X2tleRgR",
"IAEoDUgAEiAKFmhvdF9rZXlfYmluZGluZ19mYWlsZWQYEiABKAlIABIxCgtt",
"b3VzZV9lZGdlZBgTIAEoCzIaLmNsaWVudHBpcGVfcHJvdG9jb2wuUG9pbnRI",
"AEIJCgdtZXNzYWdlKi4KDUNsaXBib2FyZFR5cGUSCAoETm9uZRAAEggKBFRl",
"eHQQARIJCgVJbWFnZRACYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ClientpipeProtocol.ClipboardType), }, new pbr::GeneratedClrTypeInfo[] {
Expand Down
1 change: 1 addition & 0 deletions windows-gaming/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ xdg = "^2.1"
log = "0.3.8"
env_logger = "0.4.3"
time = "0.1.37"
clap = "2.26"
common = { path = "common" }
driver = { path = "driver" }
wizard = { path = "wizard" }
4 changes: 2 additions & 2 deletions windows-gaming/driver/src/control/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod codec;

pub use self::codec::ControlCmdOut;
pub use self::codec::{ControlCmdOut, ControlCmdIn};

use std::os::unix::net::{UnixListener as StdUnixListener};
use std::io::Error;
Expand All @@ -14,7 +14,7 @@ use tokio_io::AsyncRead;
use tokio_uds::UnixListener as TokioUnixListener;

use controller::Controller;
use self::codec::{Codec, ControlCmdIn};
use self::codec::Codec;

type Handler<'a> = Box<Future<Item=(), Error=Error> + 'a>;

Expand Down
1 change: 1 addition & 0 deletions windows-gaming/driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ extern crate prost;
extern crate common;

pub mod qemu;
pub use control::ControlCmdIn;

mod control;
mod monitor;
Expand Down
Loading

0 comments on commit 95688e0

Please sign in to comment.