ethc.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "core/hle/service/sockets/ethc.h"
  4. namespace Service::Sockets {
  5. ETHC_C::ETHC_C(Core::System& system_) : ServiceFramework{system_, "ethc:c"} {
  6. // clang-format off
  7. static const FunctionInfo functions[] = {
  8. {0, nullptr, "Initialize"},
  9. {1, nullptr, "Cancel"},
  10. {2, nullptr, "GetResult"},
  11. {3, nullptr, "GetMediaList"},
  12. {4, nullptr, "SetMediaType"},
  13. {5, nullptr, "GetMediaType"},
  14. {6, nullptr, "Unknown6"},
  15. };
  16. // clang-format on
  17. RegisterHandlers(functions);
  18. }
  19. ETHC_C::~ETHC_C() = default;
  20. ETHC_I::ETHC_I(Core::System& system_) : ServiceFramework{system_, "ethc:i"} {
  21. // clang-format off
  22. static const FunctionInfo functions[] = {
  23. {0, nullptr, "GetReadableHandle"},
  24. {1, nullptr, "Cancel"},
  25. {2, nullptr, "GetResult"},
  26. {3, nullptr, "GetInterfaceList"},
  27. {4, nullptr, "GetInterfaceCount"},
  28. };
  29. // clang-format on
  30. RegisterHandlers(functions);
  31. }
  32. ETHC_I::~ETHC_I() = default;
  33. } // namespace Service::Sockets