2021-02-13 06:07:34 +00:00
|
|
|
/*
|
2021-10-04 19:59:10 +00:00
|
|
|
* Copyright (c) Atmosphère-NX
|
2021-02-13 06:07:34 +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
|
|
|
|
#include <vapours/results/results_common.hpp>
|
|
|
|
|
|
|
|
namespace ams::htcfs {
|
|
|
|
|
|
|
|
R_DEFINE_NAMESPACE_RESULT_MODULE(31);
|
|
|
|
|
|
|
|
R_DEFINE_ERROR_RESULT(InvalidArgument, 3);
|
|
|
|
|
|
|
|
|
2021-02-13 09:57:24 +00:00
|
|
|
R_DEFINE_ERROR_RANGE(ConnectionFailure, 100, 199);
|
|
|
|
R_DEFINE_ERROR_RESULT(HtclowChannelClosed, 101);
|
|
|
|
|
|
|
|
R_DEFINE_ERROR_RANGE(UnexpectedResponse, 110, 119);
|
|
|
|
R_DEFINE_ERROR_RESULT(UnexpectedResponseProtocolId, 111);
|
|
|
|
R_DEFINE_ERROR_RESULT(UnexpectedResponseProtocolVersion, 112);
|
|
|
|
R_DEFINE_ERROR_RESULT(UnexpectedResponsePacketCategory, 113);
|
|
|
|
R_DEFINE_ERROR_RESULT(UnexpectedResponsePacketType, 114);
|
|
|
|
R_DEFINE_ERROR_RESULT(UnexpectedResponseBodySize, 115);
|
2021-02-13 13:39:02 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(UnexpectedResponseBody, 116);
|
|
|
|
|
|
|
|
R_DEFINE_ERROR_RANGE(InternalError, 200, 299);
|
2021-02-23 23:47:28 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(InvalidSize, 201);
|
2021-02-13 13:39:02 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(UnknownError, 211);
|
|
|
|
R_DEFINE_ERROR_RESULT(UnsupportedProtocolVersion, 212);
|
|
|
|
R_DEFINE_ERROR_RESULT(InvalidRequest, 213);
|
|
|
|
R_DEFINE_ERROR_RESULT(InvalidHandle, 214);
|
|
|
|
R_DEFINE_ERROR_RESULT(OutOfHandle, 215);
|
2021-02-13 06:07:34 +00:00
|
|
|
|
|
|
|
}
|