blob: 5d4f21e24c0f248f7ba76f8bf26af5dd1fccb6f9 [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.
package link
import "fidl/fuchsia/hardware/network"
type Controller interface {
Up() error
Down() error
SetPromiscuousMode(bool) error
PortClass() network.PortClass
ConnectPort(network.PortWithCtxInterfaceRequest)
}
type Observer interface {
SetOnLinkClosed(func())
SetOnLinkOnlineChanged(func(bool))
}