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: 28967 $ 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 = 0x0001, 41 TAG_CLEANUP = 0x0002, 42 TAG_SET_NETWORK_OPT = 0x0003, 43 TAG_CLOSE_SOCKETS_OF_PROCESS = 0x0004, 44 TAG_GET_DEBUG_INFORMATION = 0x0005, 45 TAG_GET_HOST_ID = 0x0006, 46 TAG_GET_ERROR_REPORT_EVENT = 0x0007, 47 TAG_GET_CONFIG_ERROR = 0x0008, 48 TAG_ABORT_STARTUP = 0x0009, 49 TAG_IPC_END 50 }; 51 52 public: 53 static Handle s_Session; 54 55 public: Privileged()56 Privileged() {} 57 58 public: 59 static nn::Result Startup( const u8 pInstanceConfig[], size_t instanceConfigLength, const u8 pCommonConfig[], size_t commonConfigLength ); 60 static nn::Result Cleanup(); 61 static nn::Result SetNetworkOpt( s32* rval, s32 level, s32 optname, const u8 optval[], s32 optlen ); 62 static nn::Result CloseSocketsOfProcess( bit32 processId ); 63 static nn::Result GetDebugInformation( s32 s, s32 type, u8 info[], size_t len ); 64 static nn::Result GetHostId( u32* hostId ); 65 static nn::Result GetErrorReportEvent( nn::Handle* pEventHandle ); 66 static nn::Result GetConfigError( s32* err ); 67 static nn::Result AbortStartup(); 68 }; 69 70 } // end of namespace detail 71 } // end of namespace socket 72 } // end of namespace nn 73 74 75 76 #endif // ifndef NN_SOCKET___SOCKET_PRIVILEGED_H_ 77