1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: uds_ScanResultReader.h 4 5 Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev: 38552 $ 14 *---------------------------------------------------------------------------*/ 15 16 /* Please see man pages for details 17 18 */ 19 20 #ifndef LIBRARIES_UDS_CTR_UDS_SCAN_RESULT_READER_H_ 21 #define LIBRARIES_UDS_CTR_UDS_SCAN_RESULT_READER_H_ 22 23 #include <nn.h> 24 25 #include <nn/uds/CTR/uds_Type.h> 26 #include <nn/uds/CTR/uds_Result.h> 27 #include <nn/uds/CTR/uds_InfoElement.h> 28 #include <nn/uds/CTR/uds_NetworkDescription.h> 29 30 namespace nn { 31 namespace uds { 32 namespace CTR { 33 34 35 /* Please see man pages for details 36 37 38 39 */ 40 class NetworkDescriptionReader 41 { 42 public: NetworkDescriptionReader(const u8 * pBuffer)43 NetworkDescriptionReader(const u8* pBuffer):m_pBuffer(pBuffer){} ~NetworkDescriptionReader()44 virtual ~NetworkDescriptionReader() {} 45 46 /* Please see man pages for details 47 48 49 50 51 52 53 54 55 */ 56 nn::Result GetNetworkDescription ( NetworkDescription* pNetworkDescription ); 57 58 /* Please see man pages for details 59 60 61 62 63 64 65 66 67 68 */ 69 nn::Result GetNodeInformationList( NodeInformation pNodeInfo[NODE_MAX] ); 70 71 /* Please see man pages for details 72 73 74 75 76 77 78 79 80 */ 81 nn::Result GetRadioStrength( LinkLevel* pLinkLevel ); 82 private: 83 const u8* m_pBuffer; 84 }; 85 86 /* Please see man pages for details 87 88 89 90 91 */ 92 class ScanResultReader 93 { 94 public: 95 /* Please see man pages for details 96 97 98 99 */ ScanResultReader(const void * pBuffer)100 ScanResultReader(const void* pBuffer) : m_pBuffer(pBuffer), m_pNext(NULL){} ~ScanResultReader()101 virtual ~ScanResultReader() {} 102 103 /* Please see man pages for details 104 105 106 */ 107 u32 GetCount() const; 108 109 /* Please see man pages for details 110 111 112 113 */ const NetworkDescriptionReader GetFirstDescription(); 114 115 /* Please see man pages for details 116 117 118 119 */ const NetworkDescriptionReader GetNextDescription(); 120 private: 121 const void* m_pBuffer; 122 bit8* m_pNext; 123 }; 124 125 /* 126 127 */ 128 } // end of namespace CTR 129 } // end of namespace uds 130 } // end of namespace nn 131 132 #endif /* LIBRARIES_UDS_CTR_UDS_SCAN_RESULT_READER_H_ */ 133