2020-04-19 23:04:05 +02:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2020-03-27 20:36:02 +01:00
|
|
|
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
|
|
|
|
|
2020-02-16 21:05:22 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <services/base_service.h>
|
|
|
|
#include <services/serviceman.h>
|
|
|
|
|
|
|
|
namespace skyline::service::fssrv {
|
|
|
|
/**
|
|
|
|
* @brief These are the possible types of the filesystem
|
|
|
|
*/
|
|
|
|
enum class FsType {
|
2020-04-22 19:02:27 +02:00
|
|
|
Nand, //!< The internal NAND storage
|
|
|
|
SdCard, //!< The external SDCard storage
|
|
|
|
GameCard, //!< The Game-Card of the inserted game (https://switchbrew.org/wiki/Gamecard)
|
2020-02-16 21:05:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief IFileSystem is used to interact with a filesystem (https://switchbrew.org/wiki/Filesystem_services#IFileSystem)
|
|
|
|
*/
|
|
|
|
class IFileSystem : public BaseService {
|
|
|
|
public:
|
2020-04-22 19:02:27 +02:00
|
|
|
FsType type; //!< The type of filesystem this class represents
|
2020-02-16 21:05:22 +01:00
|
|
|
|
|
|
|
IFileSystem(FsType type, const DeviceState &state, ServiceManager &manager);
|
|
|
|
};
|
|
|
|
}
|