1 /*---------------------------------------------------------------------------*
2   Project:  news
3   File:     news_UserTypes.h
4   Copyright (C)2010 Nintendo Co., Ltd.  All rights reserved.
5   These coded instructions, statements, and computer programs contain
6   proprietary information of Nintendo of America Inc. and/or Nintendo
7   Company Ltd., and are protected by Federal copyright law. They may
8   not be disclosed to third parties or copied or duplicated in any form,
9   in whole or in part, without the prior written consent of Nintendo.
10   $Rev$
11  *---------------------------------------------------------------------------
12 
13 
14 */
15 
16 #ifndef NN_NEWS_CTR_USER_USERTYPES_H_
17 #define NN_NEWS_CTR_USER_USERTYPES_H_
18 
19 #include <nn/types.h>
20 
21 namespace nn {
22 namespace news {
23 namespace CTR {
24 
25 /*
26   Constants for notification library.
27  */
28 static const int SUBJECT_LEN = 32;     //
29 static const int MESSAGE_LEN = 3000;   //
30 static const int PICTURE_SIZE = 51200; //
31 
32 /* Please see man pages for details
33 
34  */
35 enum TypeFlag
36 {
37     TYPE_FLAG_NINTENDO   = 0,           //
38     TYPE_FLAG_BOSS       = 1,           //
39     TYPE_FLAG_HOMEMENU   = 2,           //
40     TYPE_FLAG_USER       = 3,           //
41     TYPE_FLAG_RESERVED   = 4,           //
42     TYPE_FLAG_CEC        = 5,           //
43     TYPE_FLAG_MAX
44 };
45 
46 /* Please see man pages for details
47 
48  */
49 struct JumpArg
50 {
51     u8 version;                         //
52     u8 reserved1[2];                    //
53     u8 typeFlag;                        //
54     u8 reserved2[4];                    //
55     u32 serialId;                       //
56     u32 dataVersion;                    //
57     u64 jumpParam;                      //
58 };
59 
60 } // end of namespace CTR
61 } // end of namespace news
62 } // end of namespace nn
63 
64 #endif /* NN_NEWS_CTR_USER_USERTYPES_H_ */
65