1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     news_UserTypes.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:$
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_NEWS_CTR_USER_NEWS_USER_TYPES_H_
17 #define NN_NEWS_CTR_USER_NEWS_USER_TYPES_H_
18 
19 #include <nn/types.h>
20 
21 namespace nn {
22 namespace news {
23 namespace CTR {
24 
25 /*
26   Notification library constants.
27  */
28 static const int SUBJECT_LEN             = 32;    //
29 static const int MESSAGE_LEN             = 3000;  //
30 static const int PICTURE_SIZE            = 51200; //
31 static const int MESSAGE_URL_URL_SIZE    = 1024;  //
32 
33 /* Please see man pages for details
34 
35  */
36 enum TypeFlag
37 {
38     TYPE_FLAG_NINTENDO   = 0,           //
39     TYPE_FLAG_BOSS       = 1,           //
40     TYPE_FLAG_HOMEMENU   = 2,           //
41     TYPE_FLAG_USER       = 3,           //
42     TYPE_FLAG_RESERVED   = 4,           //
43     TYPE_FLAG_CEC        = 5,           //
44     TYPE_FLAG_MAX
45 };
46 
47 /* Please see man pages for details
48 
49  */
50 struct JumpArg
51 {
52     u8 version;                         //
53     u8 reserved1[2];                    //
54     u8 typeFlag;                        //
55     u8 reserved2[4];                    //
56     u32 serialId;                       //
57     u32 dataVersion;                    //
58     u64 jumpParam;                      //
59 };
60 
61 
62 } // end of namespace CTR
63 } // end of namespace news
64 } // end of namespace nn
65 
66 #endif /* NN_NEWS_CTR_USER_NEWS_USER_TYPES_H_ */
67