2019-12-09 11:57:37 +00:00
|
|
|
/*
|
2020-01-24 10:10:40 +00:00
|
|
|
* Copyright (c) 2018-2020 Atmosphère-NX
|
2019-12-09 11:57:37 +00:00
|
|
|
*
|
|
|
|
* 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
|
2020-02-23 03:47:08 +00:00
|
|
|
#include <vapours/results/results_common.hpp>
|
2019-12-09 11:57:37 +00:00
|
|
|
|
|
|
|
namespace ams::settings {
|
|
|
|
|
|
|
|
R_DEFINE_NAMESPACE_RESULT_MODULE(105);
|
|
|
|
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsItemNotFound, 11);
|
|
|
|
|
|
|
|
R_DEFINE_ERROR_RANGE(InternalError, 100, 149);
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsItemKeyAllocationFailed, 101);
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsItemValueAllocationFailed, 102);
|
|
|
|
|
|
|
|
R_DEFINE_ERROR_RANGE(InvalidArgument, 200, 399);
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsNameNull, 201);
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsItemKeyNull, 202);
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsItemValueNull, 203);
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsItemKeyBufferNull, 204);
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsItemValueBufferNull, 205);
|
|
|
|
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsNameEmpty, 221);
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsItemKeyEmpty, 222);
|
|
|
|
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsNameTooLong, 241);
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsItemKeyTooLong, 242);
|
|
|
|
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsNameInvalidFormat, 261);
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsItemKeyInvalidFormat, 262);
|
|
|
|
R_DEFINE_ERROR_RESULT(SettingsItemValueInvalidFormat, 263);
|
|
|
|
|
|
|
|
}
|