1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: dlp_ServerIpcClient.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: 25702 $ 14 *---------------------------------------------------------------------------*/ 15 16 // 17 // このファイルを編集しないでください。 18 // このファイルは自動生成されます。 19 // 20 21 #ifndef NN_DLP_CTR_DLP_SERVERIPCCLIENT_H_ 22 #define NN_DLP_CTR_DLP_SERVERIPCCLIENT_H_ 23 24 #include <nn/Handle.h> 25 #include <nn/Result.h> 26 #include <nn/types.h> 27 #include <nn/dlp/CTR/dlp_Type.h> 28 29 30 31 namespace nn { 32 namespace dlp { 33 namespace CTR { 34 namespace detail { 35 36 class ServerIpc 37 { 38 public: 39 enum Tag 40 { 41 TAG_IPC_ERROR, 42 TAG_INITIALIZE, 43 TAG_FINALIZE, 44 TAG_GET_STATE, 45 TAG_GET_EVENT_DESC, 46 TAG_OPEN_SESSIONS, 47 TAG_CLOSE_SESSIONS, 48 TAG_START_DISTRIBUTE, 49 TAG_REBOOT_ALL_CLIENT, 50 TAG_ACCEPT_CLIENT, 51 TAG_DISCONNECT_CLIENT, 52 TAG_GET_CONNECTING_CLIENTS, 53 TAG_GET_CLIENT_INFO, 54 TAG_GET_CLIENT_STATUS, 55 TAG_FORCE_CLIENT_TO_DOWNLOAD, 56 TAG_IPC_END 57 }; 58 59 public: 60 static Handle s_Session; 61 62 public: ServerIpc()63 ServerIpc() {} 64 65 public: 66 static nn::Result Initialize( nn::Handle hSharedMemory, size_t bufSize, u8 maxClientNum, nn::Handle handle, bit32 processId, bit64 programId ); 67 static nn::Result Finalize(); 68 static nn::Result GetState( nn::dlp::CTR::ServerState* pState ); 69 static nn::Result GetEventDesc( nn::dlp::CTR::EventDesc* pEventDesc ); 70 static nn::Result OpenSessions( bool isManualAccept ); 71 static nn::Result CloseSessions(); 72 static nn::Result StartDistribute(); 73 static nn::Result RebootAllClient(); 74 static nn::Result AcceptClient( u16 nodeId ); 75 static nn::Result DisconnectClient( u16 nodeId ); 76 static nn::Result GetConnectingClients( u16* pNum, u16 pClients[], u16 size ); 77 static nn::Result GetClientInfo( nn::dlp::CTR::NodeInfo* pClientInfo, u16 nodeId ); 78 static nn::Result GetClientStatus( nn::dlp::CTR::ClientStatus* pClientStatus, u16 nodeId ); 79 static nn::Result ForceClientToDownload( bool enable ); 80 }; 81 82 } // end of namespace detail 83 } // end of namespace CTR 84 } // end of namespace dlp 85 } // end of namespace nn 86 87 88 89 #endif // ifndef NN_DLP_CTR_DLP_SERVERIPCCLIENT_H_ 90