blob: 3e051b2babfc6a02fd4945e7807d061299d14c73 [file] [log] [blame]
// Copyright 2017 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.
#pragma once
#ifndef __Fuchsia__
#error "Fuchsia-only header"
#endif
#include <fs/vfs.h>
#include <lib/zx/channel.h>
namespace fs {
// RemoteContainer adds support for mounting remote handles on nodes.
class RemoteContainer {
public:
constexpr RemoteContainer() {}
bool IsRemote() const;
zx::channel DetachRemote();
zx_handle_t GetRemote() const;
void SetRemote(zx::channel remote);
private:
zx::channel remote_;
};
}