blob: a263a6c8d1b71105f6ce08e4ae323a0bb8469c53 [file] [log] [blame]
// Copyright 2021 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.
#ifndef SRC_LIB_STORAGE_VFS_CPP_QUERY_SERVICE_H_
#define SRC_LIB_STORAGE_VFS_CPP_QUERY_SERVICE_H_
#ifndef __Fuchsia__
#error Fuchsia-only Header
#endif
#include <fidl/fuchsia.fs/cpp/wire.h>
#include "src/lib/storage/vfs/cpp/service.h"
namespace fs {
class FuchsiaVfs;
class QueryService final : public fidl::WireServer<fuchsia_fs::Query>, public Service {
public:
explicit QueryService(FuchsiaVfs* vfs);
// Query implementation.
void IsNodeInFilesystem(IsNodeInFilesystemRequestView request,
IsNodeInFilesystemCompleter::Sync& completer) final;
private:
FuchsiaVfs* vfs_;
};
} // namespace fs
#endif // SRC_LIB_STORAGE_VFS_CPP_QUERY_SERVICE_H_