summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-10-15 04:50:04 +0200
committerbunnei <bunneidev@gmail.com>2017-10-15 04:50:04 +0200
commit72eeca1f037261ca2802da79ff1feff813e26e48 (patch)
tree19c5b2e89cd832f8a87dcc82e415553dceb01060 /src/core/hle/service/am
parenthle: Initial implementation of NX service framework and IPC. (diff)
downloadyuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar
yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar.gz
yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar.bz2
yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar.lz
yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar.xz
yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar.zst
yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.zip
Diffstat (limited to 'src/core/hle/service/am')
-rw-r--r--src/core/hle/service/am/am.cpp18
-rw-r--r--src/core/hle/service/am/am.h16
-rw-r--r--src/core/hle/service/am/applet_oe.cpp22
-rw-r--r--src/core/hle/service/am/applet_oe.h19
4 files changed, 75 insertions, 0 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
new file mode 100644
index 000000000..482aa07ef
--- /dev/null
+++ b/src/core/hle/service/am/am.cpp
@@ -0,0 +1,18 @@
+// Copyright 2017 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "common/logging/log.h"
+#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/am/am.h"
+#include "core/hle/service/am/applet_oe.h"
+
+namespace Service {
+namespace AM {
+
+void InstallInterfaces(SM::ServiceManager& service_manager) {
+ std::make_shared<AppletOE>()->InstallAsService(service_manager);
+}
+
+} // namespace AM
+} // namespace Service
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
new file mode 100644
index 000000000..0aab51bba
--- /dev/null
+++ b/src/core/hle/service/am/am.h
@@ -0,0 +1,16 @@
+// Copyright 2017 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "core/hle/service/service.h"
+
+namespace Service {
+namespace AM {
+
+/// Registers all AM services with the specified service manager.
+void InstallInterfaces(SM::ServiceManager& service_manager);
+
+} // namespace AM
+} // namespace Service
diff --git a/src/core/hle/service/am/applet_oe.cpp b/src/core/hle/service/am/applet_oe.cpp
new file mode 100644
index 000000000..a5d80f5c7
--- /dev/null
+++ b/src/core/hle/service/am/applet_oe.cpp
@@ -0,0 +1,22 @@
+// Copyright 2017 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "common/logging/log.h"
+#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/am/applet_oe.h"
+
+namespace Service {
+namespace AM {
+
+AppletOE::AppletOE() : ServiceFramework("appletOE") {
+ static const FunctionInfo functions[] = {
+ {0x00000000, nullptr, "OpenApplicationProxy"},
+ };
+ RegisterHandlers(functions);
+}
+
+AppletOE::~AppletOE() = default;
+
+} // namespace AM
+} // namespace Service
diff --git a/src/core/hle/service/am/applet_oe.h b/src/core/hle/service/am/applet_oe.h
new file mode 100644
index 000000000..1385428b1
--- /dev/null
+++ b/src/core/hle/service/am/applet_oe.h
@@ -0,0 +1,19 @@
+// Copyright 2017 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "core/hle/service/service.h"
+
+namespace Service {
+namespace AM {
+
+class AppletOE final : public ServiceFramework<AppletOE> {
+public:
+ explicit AppletOE();
+ ~AppletOE();
+};
+
+} // namespace AM
+} // namespace Service