2014-04-11 22:44:21 +00:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 05:38:14 +00:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-11-19 08:49:13 +00:00
|
|
|
// Refer to the license.txt file included.
|
2014-04-11 22:44:21 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-11-12 18:59:29 +00:00
|
|
|
#include <memory>
|
2020-01-06 20:03:40 +00:00
|
|
|
#include <boost/serialization/export.hpp>
|
2014-04-11 22:44:21 +00:00
|
|
|
#include "common/common_types.h"
|
2018-11-05 15:38:35 +00:00
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
class System;
|
|
|
|
} // namespace Core
|
2014-04-11 22:44:21 +00:00
|
|
|
|
2017-12-10 02:05:43 +00:00
|
|
|
namespace Kernel {
|
2014-05-15 22:25:56 +00:00
|
|
|
|
2018-11-12 18:59:29 +00:00
|
|
|
class SVC;
|
2015-11-27 03:00:16 +00:00
|
|
|
|
2018-11-12 18:59:29 +00:00
|
|
|
class SVCContext {
|
2018-11-05 15:38:35 +00:00
|
|
|
public:
|
2018-11-12 18:59:29 +00:00
|
|
|
SVCContext(Core::System& system);
|
|
|
|
~SVCContext();
|
2018-11-05 15:38:35 +00:00
|
|
|
void CallSVC(u32 immediate);
|
|
|
|
|
|
|
|
private:
|
2018-11-12 18:59:29 +00:00
|
|
|
std::unique_ptr<SVC> impl;
|
2018-11-05 15:38:35 +00:00
|
|
|
};
|
2014-04-11 22:44:21 +00:00
|
|
|
|
2020-01-06 20:03:40 +00:00
|
|
|
class SVC_SyncCallback;
|
|
|
|
class SVC_IPCCallback;
|
|
|
|
|
2017-12-10 02:05:43 +00:00
|
|
|
} // namespace Kernel
|
2020-01-06 20:03:40 +00:00
|
|
|
|
|
|
|
BOOST_CLASS_EXPORT_KEY(Kernel::SVC_SyncCallback)
|
|
|
|
BOOST_CLASS_EXPORT_KEY(Kernel::SVC_IPCCallback)
|