fssrv: skeleton more program registry logic
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright (c) Atmosphère-NX
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
#include <vapours.hpp>
|
||||
#include <stratosphere/fssystem/fssystem_pimpl.hpp>
|
||||
|
||||
namespace ams::fssrv {
|
||||
|
||||
namespace impl {
|
||||
|
||||
class ProgramInfo;
|
||||
class ProgramRegistryManager;
|
||||
class ProgramIndexMapInfoManager;
|
||||
|
||||
}
|
||||
|
||||
class ProgramRegistryServiceImpl {
|
||||
public:
|
||||
struct Configuration {
|
||||
/* ... */
|
||||
};
|
||||
private:
|
||||
Configuration m_config;
|
||||
fssystem::Pimpl<impl::ProgramRegistryManager, 0x40> m_registry_manager;
|
||||
fssystem::Pimpl<impl::ProgramIndexMapInfoManager, 0x50> m_index_map_info_manager;
|
||||
public:
|
||||
ProgramRegistryServiceImpl(const Configuration &cfg) : m_config(cfg) { /* ... */ }
|
||||
|
||||
Result RegisterProgramInfo(u64 process_id, u64 program_id, u8 storage_id, const void *data, s64 data_size, const void *desc, s64 desc_size);
|
||||
Result UnregisterProgramInfo(u64 process_id);
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user