diff options
author | spholz <44805808+spholz@users.noreply.github.com> | 2021-08-12 21:32:53 +0200 |
---|---|---|
committer | spholz <44805808+spholz@users.noreply.github.com> | 2021-08-12 21:32:53 +0200 |
commit | 1e98e738283ccb81303d29305188ac825ecfcba9 (patch) | |
tree | 3e82e0ce341efd5aad25584d381235365260dd1a /src/core/network/network_interface.h | |
parent | Merge branch 'yuzu-emu:master' into fix-lan-play (diff) | |
download | yuzu-1e98e738283ccb81303d29305188ac825ecfcba9.tar yuzu-1e98e738283ccb81303d29305188ac825ecfcba9.tar.gz yuzu-1e98e738283ccb81303d29305188ac825ecfcba9.tar.bz2 yuzu-1e98e738283ccb81303d29305188ac825ecfcba9.tar.lz yuzu-1e98e738283ccb81303d29305188ac825ecfcba9.tar.xz yuzu-1e98e738283ccb81303d29305188ac825ecfcba9.tar.zst yuzu-1e98e738283ccb81303d29305188ac825ecfcba9.zip |
Diffstat (limited to 'src/core/network/network_interface.h')
-rw-r--r-- | src/core/network/network_interface.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/core/network/network_interface.h b/src/core/network/network_interface.h new file mode 100644 index 000000000..d7184e14a --- /dev/null +++ b/src/core/network/network_interface.h @@ -0,0 +1,25 @@ +// Copyright 2021 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include <string> +#include <vector> + +#ifdef _WIN32 +#include <winsock2.h> +#else +#include <netinet/in.h> +#endif + +namespace Network { + +struct NetworkInterface { + std::string name; + struct in_addr ip_address; +}; + +std::vector<NetworkInterface> GetAvailableNetworkInterfaces(); + +} // namespace Network |