1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: socket_Privileged.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: 25795 $ 14 *---------------------------------------------------------------------------*/ 15 16 // 17 // このファイルを編集しないでください。 18 // このファイルは自動生成されます。 19 // 20 21 #ifndef NN_SOCKET___SOCKET_PRIVILEGED_H_ 22 #define NN_SOCKET___SOCKET_PRIVILEGED_H_ 23 24 #include <nn/Handle.h> 25 #include <nn/Result.h> 26 #include <nn/types.h> 27 28 29 30 namespace nn { 31 namespace socket { 32 namespace detail { 33 34 class Privileged 35 { 36 public: 37 enum Tag 38 { 39 TAG_IPC_ERROR, 40 TAG_STARTUP, 41 TAG_CLEANUP, 42 TAG_SET_NETWORK_OPT, 43 TAG_CLOSE_SOCKETS_OF_PROCESS, 44 TAG_GET_DEBUG_INFORMATION, 45 TAG_GET_HOST_ID, 46 TAG_GET_ERROR_REPORT_EVENT, 47 TAG_GET_CONFIG_ERROR, 48 TAG_IPC_END 49 }; 50 51 public: 52 static Handle s_Session; 53 54 public: Privileged()55 Privileged() {} 56 57 public: 58 static nn::Result Startup( const u8 pInstanceConfig[], size_t instanceConfigLength, const u8 pCommonConfig[], size_t commonConfigLength ); 59 static nn::Result Cleanup(); 60 static nn::Result SetNetworkOpt( s32* rval, s32 level, s32 optname, const u8 optval[], s32 optlen ); 61 static nn::Result CloseSocketsOfProcess( bit32 processId ); 62 static nn::Result GetDebugInformation( s32 s, s32 type, u8 info[], size_t len ); 63 static nn::Result GetHostId( u32* hostId ); 64 static nn::Result GetErrorReportEvent( nn::Handle* pEventHandle ); 65 static nn::Result GetConfigError( s32* err ); 66 }; 67 68 } // end of namespace detail 69 } // end of namespace socket 70 } // end of namespace nn 71 72 73 74 #endif // ifndef NN_SOCKET___SOCKET_PRIVILEGED_H_ 75