blob: 04c4547097090df9acb74c8be85051ee16267aff [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, zx.rights.WAIT | zx.rights.WRITE | zx.rights.READ>;
}) -> (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;
};