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: 33107 $
14  *---------------------------------------------------------------------------*/
15 
16 //
17 // Do not edit this file.
18 // This file is automatically generated.
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 
33     class Privileged
34     {
35     public:
36         enum Tag
37         {
38             TAG_IPC_ERROR,
39             TAG_STARTUP                                          = 0x0001,
40             TAG_CLEANUP                                          = 0x0002,
41             TAG_SET_NETWORK_OPT                                  = 0x0003,
42             TAG_CLOSE_SOCKETS_OF_PROCESS                         = 0x0004,
43             TAG_GET_DEBUG_INFORMATION                            = 0x0005,
44             TAG_GET_HOST_ID                                      = 0x0006,
45             TAG_GET_ERROR_REPORT_EVENT                           = 0x0007,
46             TAG_GET_CONFIG_ERROR                                 = 0x0008,
47             TAG_ABORT_STARTUP                                    = 0x0009,
48             TAG_IPC_END
49         };
50 
51     private:
52         Handle m_Session;
53 
54     public:
Privileged(Handle session)55         Privileged(Handle session) : m_Session(session) {}
56 
57     public:
58         nn::Result Startup( const u8 pInstanceConfig[], size_t instanceConfigLength, const u8 pCommonConfig[], size_t commonConfigLength );
59         nn::Result Cleanup();
60         nn::Result SetNetworkOpt( s32* rval, s32 level, s32 optname, const u8 optval[], s32 optlen );
61         nn::Result CloseSocketsOfProcess( bit32 processId );
62         nn::Result GetDebugInformation( s32 s, s32 type, u8 info[], size_t len );
63         nn::Result GetHostId( u32* hostId );
64         nn::Result GetErrorReportEvent( nn::Handle* pEventHandle );
65         nn::Result GetConfigError( s32* err );
66         nn::Result AbortStartup();
67     };
68 
69 } // end of namespace socket
70 } // end of namespace nn
71 
72 
73 
74 #endif  // ifndef NN_SOCKET___SOCKET_PRIVILEGED_H_
75