mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-27 13:14:15 -04:00
svc: populate namespace
This commit is contained in:
parent
7806766a59
commit
3a91a6b786
23 changed files with 1258 additions and 273 deletions
61
libraries/libvapours/include/vapours/svc/svc_common.hpp
Normal file
61
libraries/libvapours/include/vapours/svc/svc_common.hpp
Normal file
|
@ -0,0 +1,61 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2019 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 "../results.hpp"
|
||||
|
||||
namespace ams::svc {
|
||||
|
||||
/* TODO: C++ style handle? */
|
||||
#ifdef ATMOSPHERE_IS_STRATOSPHERE
|
||||
using Handle = ::Handle;
|
||||
#elif defined ATMOSPHERE_IS_MESOSPHERE
|
||||
using Handle = u32;
|
||||
#else
|
||||
#error "Unknown target for svc::Handle"
|
||||
#endif
|
||||
|
||||
#ifdef ATMOSPHERE_ARCH_ARM64
|
||||
|
||||
|
||||
namespace lp64 { /* ... */ }
|
||||
namespace aarch64 { /* ... */ }
|
||||
using namespace ::ams::svc::lp64;
|
||||
using namespace ::ams::svc::aarch64;
|
||||
|
||||
/* TODO: ifdef ATMOSPHERE_ABI_LP64 */
|
||||
#if 1
|
||||
namespace aarch64::lp64 { /* ... */ }
|
||||
using namespace ::ams::svc::aarch64::lp64;
|
||||
#else
|
||||
namespace aarch64::ilp32 { /* ... */ }
|
||||
using namespace ::ams::svc::aarch64::ilp32;
|
||||
#endif
|
||||
|
||||
#elif defined ATMOSPHERE_ARCH_ARM
|
||||
|
||||
namespace ilp32 { /* ... */ }
|
||||
namespace aarch32 { /* ... */ }
|
||||
using namespace ::ams::svc::ilp32;
|
||||
using namespace ::ams::svc::aarch32;
|
||||
|
||||
#else
|
||||
|
||||
#error "Unknown Architecture"
|
||||
|
||||
#endif
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue