blob: c88b38318d27f2f87ddf366c21e7b952af450d32 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.hardware.telephony.transport;
using zx;
using fuchsia.telephony.snoop as qmi_snoop;
protocol Qmi {
/// Give a channel handle that transports bi-directional QMI messages
SetChannel(resource struct {
transport zx.handle:CHANNEL;
}) -> (struct {}) error zx.status;
/// Configure the network used by the transport
/// Currently only sets network up/down
SetNetwork(struct {
connected bool;
}) -> ();
/// Pass an interface for QMI message snooping
SetSnoopChannel(resource struct {
interface client_end:qmi_snoop.Publisher;
}) -> (struct {}) error zx.status;
};