1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     rdt_Result.h
4 
5   Copyright (C)2009-2012 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: 46347 $
14  *---------------------------------------------------------------------------*/
15 
16 ////#include <stdafx.h>
17 
18 #ifndef NN_RDT_RESULT_H_
19 #define NN_RDT_RESULT_H_
20 
21 #include <nn/Result.h>
22 
23 
24 namespace nn { namespace rdt { namespace CTR {
25 
26 
27 enum Description
28 {
29     DESCRIPTION_RESET_RECEIVED = 1,   //
30     DESCRIPTION_UNTIMELY_CALL  = 2,   //
31     DESCRIPTION_INVALID_VALUE  = 3    //
32 };
33 
34 
35 /*
36 Please see man pages for details
37 
38 
39 
40  */
41 NN_DEFINE_RESULT_CONST(
42     ResultAlreadyInitialized,
43     Result::LEVEL_INFO,
44     Result::SUMMARY_NOTHING_HAPPENED,
45     Result::MODULE_NN_RDT,
46     Result::DESCRIPTION_ALREADY_INITIALIZED);
47 
48 
49 /*
50 Please see man pages for details
51 
52 
53 
54 */
55 NN_DEFINE_RESULT_CONST(
56     ResultDoNothing,
57     Result::LEVEL_INFO,
58     Result::SUMMARY_NOTHING_HAPPENED,
59     Result::MODULE_NN_RDT,
60     Result::DESCRIPTION_SUCCESS);
61 
62 
63 /*
64 Please see man pages for details
65 
66 
67 
68 
69 */
70 NN_DEFINE_RESULT_CONST(
71     ResultNotInitialized,
72     Result::LEVEL_USAGE,
73     Result::SUMMARY_INVALID_STATE,
74     Result::MODULE_NN_RDT,
75     Result::DESCRIPTION_NOT_INITIALIZED);
76 
77 
78 /*
79 Please see man pages for details
80 
81 
82 
83 
84 
85 
86 
87  */
88 NN_DEFINE_RESULT_CONST(
89     ResultSendBufferIsNotAvailable,
90     Result::LEVEL_TEMPORARY,
91     Result::SUMMARY_OUT_OF_RESOURCE,
92     Result::MODULE_NN_RDT,
93     Result::DESCRIPTION_OUT_OF_MEMORY);
94 
95 
96 /*
97 Please see man pages for details
98 
99 
100 
101  */
102 NN_DEFINE_RESULT_CONST(
103     ResultInvalidSize,
104     Result::LEVEL_USAGE,
105     Result::SUMMARY_INVALID_ARGUMENT,
106     Result::MODULE_NN_RDT,
107     Result::DESCRIPTION_INVALID_SIZE);
108 
109 
110 /*
111 Please see man pages for details
112 
113 
114 
115 
116 
117  */
118 NN_DEFINE_RESULT_CONST(
119     ResultMisalignedAddress,
120     Result::LEVEL_USAGE,
121     Result::SUMMARY_INVALID_ARGUMENT,
122     Result::MODULE_NN_RDT,
123     Result::DESCRIPTION_MISALIGNED_ADDRESS);
124 
125 
126 /*
127 Please see man pages for details
128 
129 
130 
131 
132  */
133 NN_DEFINE_RESULT_CONST(
134     ResultNullPointer,
135     Result::LEVEL_USAGE,
136     Result::SUMMARY_INVALID_ARGUMENT,
137     Result::MODULE_NN_RDT,
138     Result::DESCRIPTION_INVALID_POINTER);
139 
140 
141 /*
142 Please see man pages for details
143 
144 
145 
146 
147 
148 
149  */
150 NN_DEFINE_RESULT_CONST(
151     ResultResetReceived,
152     Result::LEVEL_STATUS,
153     Result::SUMMARY_STATUS_CHANGED,
154     Result::MODULE_NN_RDT,
155             DESCRIPTION_RESET_RECEIVED);
156 
157 
158 /*
159 Please see man pages for details
160 
161 
162 
163 
164  */
165 NN_DEFINE_RESULT_CONST(
166     ResultResendQueueIsFull,
167     Result::LEVEL_RESET,
168     Result::SUMMARY_OUT_OF_RESOURCE,
169     Result::MODULE_NN_RDT,
170     Result::DESCRIPTION_OUT_OF_MEMORY);
171 
172 
173 /*
174 Please see man pages for details
175 
176 
177 
178 
179 
180  */
181 NN_DEFINE_RESULT_CONST(
182     ResultUntimelyFunctionCall,
183     Result::LEVEL_STATUS,
184     Result::SUMMARY_INVALID_STATE,
185     Result::MODULE_NN_RDT,
186             DESCRIPTION_UNTIMELY_CALL);
187 
188 
189 /*
190 Please see man pages for details
191 
192 
193 
194 
195  */
196 NN_DEFINE_RESULT_CONST(
197     ResultNoData,
198     Result::LEVEL_TEMPORARY,
199     Result::SUMMARY_NOT_FOUND,
200     Result::MODULE_NN_RDT,
201     Result::DESCRIPTION_NO_DATA);
202 
203 
204 /*
205 Please see man pages for details
206 
207 
208 
209  */
210 NN_DEFINE_RESULT_CONST(
211     ResultInvalidValue,
212     Result::LEVEL_USAGE,
213     Result::SUMMARY_INVALID_ARGUMENT,
214     Result::MODULE_NN_RDT,
215             DESCRIPTION_INVALID_VALUE);
216 
217 
218 }}} // namespace nn::rdt::CTR
219 
220 #endif  // end of NN_RDT_RESULT_H_
221