1// Copyright 2018 The Fuchsia Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "xdc-init.h" 6 7#include <xdc-host-utils/client.h> 8 9#include <stdio.h> 10 11zx_status_t configure_xdc(const uint32_t stream_id, fbl::unique_fd& out_fd) { 12 zx_status_t status = xdc::GetStream(stream_id, out_fd); 13 if (status != ZX_OK) { 14 return status; 15 } 16 printf("client has fd %d, stream id %u\n", out_fd.get(), stream_id); 17 return ZX_OK; 18} 19