/*---------------------------------------------------------------------------* Project: Horizon File: socket_Privileged.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: 28967 $ *---------------------------------------------------------------------------*/ // // このファイルを編集しないでください。 // このファイルは自動生成されます。 // #ifndef NN_SOCKET___SOCKET_PRIVILEGED_H_ #define NN_SOCKET___SOCKET_PRIVILEGED_H_ #include #include #include namespace nn { namespace socket { namespace detail { class Privileged { public: enum Tag { TAG_IPC_ERROR, TAG_STARTUP = 0x0001, TAG_CLEANUP = 0x0002, TAG_SET_NETWORK_OPT = 0x0003, TAG_CLOSE_SOCKETS_OF_PROCESS = 0x0004, TAG_GET_DEBUG_INFORMATION = 0x0005, TAG_GET_HOST_ID = 0x0006, TAG_GET_ERROR_REPORT_EVENT = 0x0007, TAG_GET_CONFIG_ERROR = 0x0008, TAG_ABORT_STARTUP = 0x0009, TAG_IPC_END }; public: static Handle s_Session; public: Privileged() {} public: static nn::Result Startup( const u8 pInstanceConfig[], size_t instanceConfigLength, const u8 pCommonConfig[], size_t commonConfigLength ); static nn::Result Cleanup(); static nn::Result SetNetworkOpt( s32* rval, s32 level, s32 optname, const u8 optval[], s32 optlen ); static nn::Result CloseSocketsOfProcess( bit32 processId ); static nn::Result GetDebugInformation( s32 s, s32 type, u8 info[], size_t len ); static nn::Result GetHostId( u32* hostId ); static nn::Result GetErrorReportEvent( nn::Handle* pEventHandle ); static nn::Result GetConfigError( s32* err ); static nn::Result AbortStartup(); }; } // end of namespace detail } // end of namespace socket } // end of namespace nn #endif // ifndef NN_SOCKET___SOCKET_PRIVILEGED_H_