| Index: device/serial/serial.mojom
|
| diff --git a/device/serial/serial.mojom b/device/serial/serial.mojom
|
| index 27f3258660b32fcef549e4194372a8b0385daf95..07c6fe6bd46d5e2f197e4e0f60ed45a1ab86bc3d 100644
|
| --- a/device/serial/serial.mojom
|
| +++ b/device/serial/serial.mojom
|
| @@ -4,8 +4,6 @@
|
|
|
| module device.serial;
|
|
|
| -import "data_stream.mojom";
|
| -
|
| struct DeviceInfo {
|
| string path;
|
| uint16 vendor_id;
|
| @@ -85,28 +83,3 @@ struct DeviceControlSignals {
|
| bool ri;
|
| bool dsr;
|
| };
|
| -
|
| -interface SerialService {
|
| - GetDevices() => (array<DeviceInfo> devices);
|
| -
|
| - // Creates a |Connection| to |path| with options specified by |options|,
|
| - // returning it via |connection|. Sending and receiving data over this
|
| - // connection is handled by |sink| and |source|, respectively. This will fail
|
| - // and |connection| will not be usable if |path| does not specify a valid
|
| - // serial device or there is an error connecting to or configuring the
|
| - // connection.
|
| - Connect(string path,
|
| - ConnectionOptions? options,
|
| - Connection& connection,
|
| - DataSink& sink,
|
| - DataSource& source,
|
| - DataSourceClient source_client);
|
| -};
|
| -
|
| -interface Connection {
|
| - GetInfo() => (ConnectionInfo? info);
|
| - SetOptions(ConnectionOptions options) => (bool success);
|
| - SetControlSignals(HostControlSignals signals) => (bool success);
|
| - GetControlSignals() => (DeviceControlSignals? signals);
|
| - Flush() => (bool success);
|
| -};
|
|
|