blob: 1d6609d92bb7bebd6686a20686561dc2acc3bc68 [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_F2FS_SERVICE_ADMIN_H_
#define SRC_STORAGE_F2FS_SERVICE_ADMIN_H_
namespace f2fs {
class AdminService final : 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) final;
private:
ShutdownRequester shutdown_;
};
} // namespace f2fs
#endif // SRC_STORAGE_F2FS_SERVICE_ADMIN_H_