blob: 6eb5537a149fa5d05e7c23b84d4d4f152392954d [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_STORAGE_MINFS_SERVICE_ADMIN_H_
#define SRC_STORAGE_MINFS_SERVICE_ADMIN_H_
#include "src/storage/lib/vfs/cpp/service.h"
#include "src/storage/minfs/runner.h"
namespace minfs {
class AdminService : public fidl::WireServer<fuchsia_fs::Admin>, public fs::Service {
public:
using ShutdownRequester = fit::callback<void(fs::FuchsiaVfs::ShutdownCallback)>;
AdminService(async_dispatcher_t* dispatcher, ShutdownRequester shutdown);
void Shutdown(ShutdownCompleter::Sync& completer) override;
private:
ShutdownRequester shutdown_;
};
} // namespace minfs
#endif // SRC_STORAGE_MINFS_SERVICE_ADMIN_H_