diff options
Diffstat (limited to 'device/serial/serial_serialization.mojom')
-rw-r--r-- | device/serial/serial_serialization.mojom | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/device/serial/serial_serialization.mojom b/device/serial/serial_serialization.mojom new file mode 100644 index 0000000..77a7ef7 --- /dev/null +++ b/device/serial/serial_serialization.mojom @@ -0,0 +1,31 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import "serial.mojom" +import "data_stream_serialization.mojom" + +module device.serial { + +// The client state of a serial connection. +struct ConnectionState { + uint32 connectionId; + bool paused = false; + bool persistent = false; + string name = ""; + uint32 receiveTimeout = 0; + uint32 sendTimeout = 0; + uint32 bufferSize = 4096; +}; + +// A serialized serial connection. +struct SerializedConnection { + ConnectionState state; + ReceiveError queuedReceiveError = NONE; + array<int8>? queuedReceiveData; + Connection connection; + SerializedDataSender sender; + SerializedDataReceiver receiver; +}; + +} |