sfdnsres.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "core/hle/ipc_helpers.h"
  5. #include "core/hle/service/sockets/sfdnsres.h"
  6. namespace Service {
  7. namespace Sockets {
  8. void SFDNSRES::GetAddrInfo(Kernel::HLERequestContext& ctx) {
  9. IPC::RequestParser rp{ctx};
  10. LOG_WARNING(Service, "(STUBBED) called");
  11. IPC::ResponseBuilder rb{ctx, 2};
  12. rb.Push(RESULT_SUCCESS);
  13. }
  14. SFDNSRES::SFDNSRES() : ServiceFramework("sfdnsres") {
  15. static const FunctionInfo functions[] = {
  16. {0, nullptr, "SetDnsAddressesPrivate"},
  17. {1, nullptr, "GetDnsAddressPrivate"},
  18. {2, nullptr, "GetHostByName"},
  19. {3, nullptr, "GetHostByAddr"},
  20. {4, nullptr, "GetHostStringError"},
  21. {5, nullptr, "GetGaiStringError"},
  22. {6, &SFDNSRES::GetAddrInfo, "GetAddrInfo"},
  23. {7, nullptr, "GetNameInfo"},
  24. {8, nullptr, "RequestCancelHandle"},
  25. {9, nullptr, "CancelSocketCall"},
  26. };
  27. RegisterHandlers(functions);
  28. }
  29. } // namespace Sockets
  30. } // namespace Service