summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nwm/nwm_uds.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-03-20 03:36:51 +0100
committerSubv <subv2112@gmail.com>2017-05-15 20:05:15 +0200
commit528dea988c9f8012a2872e78f168eac1b3161c57 (patch)
treecd690d01edb47cef0877b104e56e485d971c6686 /src/core/hle/service/nwm/nwm_uds.h
parentMerge pull request #2628 from Subv/uds (diff)
downloadyuzu-528dea988c9f8012a2872e78f168eac1b3161c57.tar
yuzu-528dea988c9f8012a2872e78f168eac1b3161c57.tar.gz
yuzu-528dea988c9f8012a2872e78f168eac1b3161c57.tar.bz2
yuzu-528dea988c9f8012a2872e78f168eac1b3161c57.tar.lz
yuzu-528dea988c9f8012a2872e78f168eac1b3161c57.tar.xz
yuzu-528dea988c9f8012a2872e78f168eac1b3161c57.tar.zst
yuzu-528dea988c9f8012a2872e78f168eac1b3161c57.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nwm/nwm_uds.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/nwm/nwm_uds.h b/src/core/hle/service/nwm/nwm_uds.h
index 65349f9fd..29b146569 100644
--- a/src/core/hle/service/nwm/nwm_uds.h
+++ b/src/core/hle/service/nwm/nwm_uds.h
@@ -6,6 +6,7 @@
#include <array>
#include <cstddef>
+#include <vector>
#include "common/common_types.h"
#include "common/swap.h"
#include "core/hle/service/service.h"
@@ -33,6 +34,8 @@ struct NodeInfo {
static_assert(sizeof(NodeInfo) == 40, "NodeInfo has incorrect size.");
+using NodeList = std::vector<NodeInfo>;
+
enum class NetworkStatus {
NotConnected = 3,
ConnectedAsHost = 6,
@@ -75,6 +78,8 @@ struct NetworkInfo {
std::array<u8, ApplicationDataSize> application_data;
};
+static_assert(offsetof(NetworkInfo, oui_value) == 0xC, "oui_value is at the wrong offset.");
+static_assert(offsetof(NetworkInfo, wlan_comm_id) == 0x10, "wlancommid is at the wrong offset.");
static_assert(sizeof(NetworkInfo) == 0x108, "NetworkInfo has incorrect size.");
class NWM_UDS final : public Interface {