1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     enc_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 #ifndef NN_ENC_ENC_RESULT_H_
17 #define NN_ENC_ENC_RESULT_H_
18 
19 #include <nn/Result.h>
20 
21 #ifdef __cplusplus
22 
23 namespace nn { namespace enc {
24 
25 enum Description
26 {
27     DESCRIPTION_NO_BUFFER_LEFT = 1,
28     DESCRIPTION_INVALID_PARAMETER,
29     DESCRIPTION_INVALID_FORMAT
30 };
31 
32 NN_DEFINE_RESULT_FUNC_LM(
33     MakeUsageResult,
34     Result::LEVEL_USAGE, Result::MODULE_NN_ENC
35 );
36 
37 NN_DEFINE_RESULT_FUNC_LM(
38     MakePermanentResult,
39     Result::LEVEL_PERMANENT, Result::MODULE_NN_ENC
40 );
41 
42 NN_DEFINE_RESULT_CONST_LM(
43     ResultNoBufferLeft, MakePermanentResult,
44     Result::SUMMARY_WRONG_ARGUMENT, DESCRIPTION_NO_BUFFER_LEFT
45 );
46 
47 NN_DEFINE_RESULT_CONST_LM(
48     ResultInvalidParameter, MakeUsageResult,
49     Result::SUMMARY_INVALID_ARGUMENT, DESCRIPTION_INVALID_PARAMETER
50 );
51 
52 NN_DEFINE_RESULT_CONST_LM(
53     ResultInvalidFormat, MakePermanentResult,
54     Result::SUMMARY_INVALID_ARGUMENT, DESCRIPTION_INVALID_FORMAT
55 );
56 
57 }}
58 
59 #endif // __cplusplus
60 
61 #endif /* NN_ENC_ENC_RESULT_H_ */
62