summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/soc_u.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-11-02 00:03:01 +0100
committerbunnei <bunneidev@gmail.com>2014-11-02 00:03:01 +0100
commit6e6947118b60f6d19da0567b4cb72e1492c09775 (patch)
tree213a590f13bffc30909c537f6fd4fc6e60112957 /src/core/hle/service/soc_u.cpp
parentMerge pull request #167 from yuriks/vfp-build (diff)
parentAdded a bunch of services (diff)
downloadyuzu-6e6947118b60f6d19da0567b4cb72e1492c09775.tar
yuzu-6e6947118b60f6d19da0567b4cb72e1492c09775.tar.gz
yuzu-6e6947118b60f6d19da0567b4cb72e1492c09775.tar.bz2
yuzu-6e6947118b60f6d19da0567b4cb72e1492c09775.tar.lz
yuzu-6e6947118b60f6d19da0567b4cb72e1492c09775.tar.xz
yuzu-6e6947118b60f6d19da0567b4cb72e1492c09775.tar.zst
yuzu-6e6947118b60f6d19da0567b4cb72e1492c09775.zip
Diffstat (limited to 'src/core/hle/service/soc_u.cpp')
-rw-r--r--src/core/hle/service/soc_u.cpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/core/hle/service/soc_u.cpp b/src/core/hle/service/soc_u.cpp
new file mode 100644
index 000000000..2f8910468
--- /dev/null
+++ b/src/core/hle/service/soc_u.cpp
@@ -0,0 +1,58 @@
+// Copyright 2014 Citra Emulator Project
+// Licensed under GPLv2
+// Refer to the license.txt file included.
+
+#include "common/log.h"
+#include "core/hle/hle.h"
+#include "core/hle/service/soc_u.h"
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+// Namespace SOC_U
+
+namespace SOC_U {
+
+const Interface::FunctionInfo FunctionTable[] = {
+ {0x00010044, nullptr, "InitializeSockets"},
+ {0x000200C2, nullptr, "socket"},
+ {0x00030082, nullptr, "listen"},
+ {0x00040082, nullptr, "accept"},
+ {0x00050084, nullptr, "bind"},
+ {0x00060084, nullptr, "connect"},
+ {0x00070104, nullptr, "recvfrom_other"},
+ {0x00080102, nullptr, "recvfrom"},
+ {0x00090106, nullptr, "sendto_other"},
+ {0x000A0106, nullptr, "sendto"},
+ {0x000B0042, nullptr, "close"},
+ {0x000C0082, nullptr, "shutdown"},
+ {0x000D0082, nullptr, "gethostbyname"},
+ {0x000E00C2, nullptr, "gethostbyaddr"},
+ {0x000F0106, nullptr, "unknown_resolve_ip"},
+ {0x00110102, nullptr, "getsockopt"},
+ {0x00120104, nullptr, "setsockopt"},
+ {0x001300C2, nullptr, "fcntl"},
+ {0x00140084, nullptr, "poll"},
+ {0x00150042, nullptr, "sockatmark"},
+ {0x00160000, nullptr, "gethostid"},
+ {0x00170082, nullptr, "getsockname"},
+ {0x00180082, nullptr, "getpeername"},
+ {0x00190000, nullptr, "ShutdownSockets"},
+ {0x001A00C0, nullptr, "GetNetworkOpt"},
+ {0x001B0040, nullptr, "ICMPSocket"},
+ {0x001C0104, nullptr, "ICMPPing"},
+ {0x001D0040, nullptr, "ICMPCancel"},
+ {0x001E0040, nullptr, "ICMPClose"},
+ {0x001F0040, nullptr, "GetResolverInfo"},
+ {0x00210002, nullptr, "CloseSockets"},
+};
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+// Interface class
+
+Interface::Interface() {
+ Register(FunctionTable, ARRAY_SIZE(FunctionTable));
+}
+
+Interface::~Interface() {
+}
+
+} // namespace