From aab4aedb34e5029101ee15c238ead6167aaa4afa Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 28 Mar 2019 15:27:55 -0700 Subject: [PATCH] results: Add SM results --- include/stratosphere/results.hpp | 1 + include/stratosphere/results/sm_results.hpp | 30 +++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 include/stratosphere/results/sm_results.hpp diff --git a/include/stratosphere/results.hpp b/include/stratosphere/results.hpp index 6feeaef8..f0a656e7 100644 --- a/include/stratosphere/results.hpp +++ b/include/stratosphere/results.hpp @@ -20,4 +20,5 @@ #include "results/loader_results.hpp" #include "results/dmnt_results.hpp" #include "results/pm_results.hpp" +#include "results/sm_results.hpp" #include "results/creport_results.hpp" \ No newline at end of file diff --git a/include/stratosphere/results/sm_results.hpp b/include/stratosphere/results/sm_results.hpp new file mode 100644 index 00000000..d3f1007c --- /dev/null +++ b/include/stratosphere/results/sm_results.hpp @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2018 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 . + */ + +#pragma once +#include + +static constexpr u32 Module_Sm = 21; + +static constexpr Result ResultSmInsufficientProcesses = MAKERESULT(Module_Sm, 1); +static constexpr Result ResultSmInvalidClient = MAKERESULT(Module_Sm, 2); +static constexpr Result ResultSmInsufficientSessions = MAKERESULT(Module_Sm, 3); +static constexpr Result ResultSmAlreadyRegistered = MAKERESULT(Module_Sm, 4); +static constexpr Result ResultSmInsufficientServices = MAKERESULT(Module_Sm, 5); +static constexpr Result ResultSmInvalidServiceName = MAKERESULT(Module_Sm, 6); +static constexpr Result ResultSmNotRegistered = MAKERESULT(Module_Sm, 7); +static constexpr Result ResultSmNotAllowed = MAKERESULT(Module_Sm, 8); +static constexpr Result ResultSmTooLargeAccessControl = MAKERESULT(Module_Sm, 9);