blob: 3108e851052753806187384edea7e95374b61326 [file] [log] [blame]
// Copyright 2020 The Go 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 fidl_test
import "syscall/zx"
func handleClose(h *zx.Handle) error {
err := h.Close()
if err, ok := err.(*zx.Error); ok && err.Status == zx.ErrBadHandle {
return nil
}
return err
}
var handleReplace = zx.Handle.Replace
var handleGetBasicInfo = (*zx.Handle).GetInfoHandleBasic
var channelClose = (*zx.Channel).Close
var newChannel = zx.NewChannel
var newEvent = zx.NewEvent
var isHandleValid = (*zx.Handle).GetInfoHandleValid