/*---------------------------------------------------------------------------* Project: Horizon File: dlp_ServerIpcClient.h Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Rev: 25702 $ *---------------------------------------------------------------------------*/ // // このファイルを編集しないでください。 // このファイルは自動生成されます。 // #ifndef NN_DLP_CTR_DLP_SERVERIPCCLIENT_H_ #define NN_DLP_CTR_DLP_SERVERIPCCLIENT_H_ #include #include #include #include namespace nn { namespace dlp { namespace CTR { namespace detail { class ServerIpc { public: enum Tag { TAG_IPC_ERROR, TAG_INITIALIZE, TAG_FINALIZE, TAG_GET_STATE, TAG_GET_EVENT_DESC, TAG_OPEN_SESSIONS, TAG_CLOSE_SESSIONS, TAG_START_DISTRIBUTE, TAG_REBOOT_ALL_CLIENT, TAG_ACCEPT_CLIENT, TAG_DISCONNECT_CLIENT, TAG_GET_CONNECTING_CLIENTS, TAG_GET_CLIENT_INFO, TAG_GET_CLIENT_STATUS, TAG_FORCE_CLIENT_TO_DOWNLOAD, TAG_IPC_END }; public: static Handle s_Session; public: ServerIpc() {} public: static nn::Result Initialize( nn::Handle hSharedMemory, size_t bufSize, u8 maxClientNum, nn::Handle handle, bit32 processId, bit64 programId ); static nn::Result Finalize(); static nn::Result GetState( nn::dlp::CTR::ServerState* pState ); static nn::Result GetEventDesc( nn::dlp::CTR::EventDesc* pEventDesc ); static nn::Result OpenSessions( bool isManualAccept ); static nn::Result CloseSessions(); static nn::Result StartDistribute(); static nn::Result RebootAllClient(); static nn::Result AcceptClient( u16 nodeId ); static nn::Result DisconnectClient( u16 nodeId ); static nn::Result GetConnectingClients( u16* pNum, u16 pClients[], u16 size ); static nn::Result GetClientInfo( nn::dlp::CTR::NodeInfo* pClientInfo, u16 nodeId ); static nn::Result GetClientStatus( nn::dlp::CTR::ClientStatus* pClientStatus, u16 nodeId ); static nn::Result ForceClientToDownload( bool enable ); }; } // end of namespace detail } // end of namespace CTR } // end of namespace dlp } // end of namespace nn #endif // ifndef NN_DLP_CTR_DLP_SERVERIPCCLIENT_H_