1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: news_UserApi.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_NEWS_USER_USERAPI_H_ 17 #define NN_NEWS_CTR_NEWS_USER_USERAPI_H_ 18 19 #include <nn/fnd.h> 20 #include <nn/Result.h> 21 #include <nn/types.h> 22 #include <nn/news/CTR/user/news_UserTypes.h> 23 24 namespace nn { 25 namespace news { 26 namespace CTR { 27 namespace user { 28 29 /* Please see man pages for details 30 31 32 */ 33 Result 34 Initialize(); 35 36 /* Please see man pages for details 37 38 39 */ 40 Result 41 Finalize(); 42 43 /* Please see man pages for details 44 45 46 47 48 49 50 51 52 53 */ 54 Result 55 PostNews( 56 const wchar_t* subject, 57 const wchar_t* message, 58 const u8* picture = NULL, 59 size_t pictureSize = 0, 60 u32 serialId = 0, 61 u32 dataVersion = 0, 62 u64 jumpParam = 0 63 ); 64 65 /* Please see man pages for details 66 67 68 69 70 */ 71 size_t 72 GetWorkBufferSizeForNewsUrl( 73 const wchar_t* message, 74 const u8* url 75 ); 76 77 /* Please see man pages for details 78 79 80 81 82 83 84 85 86 87 88 89 */ 90 Result 91 PostNewsUrl( 92 const wchar_t* subject, 93 const wchar_t* message, 94 const u8* url, 95 u8* workBuf, 96 const u8* picture = NULL, 97 size_t pictureSize = 0, 98 u32 serialId = 0, 99 u32 dataVersion = 0, 100 u64 jumpParam = 0 101 ); 102 103 104 /* Please see man pages for details 105 106 107 108 109 110 111 */ 112 bool IsFromNewsList( JumpArg* jumpArg ); 113 114 } 115 } 116 } 117 } 118 119 #endif /* NN_NEWS_CTR_NEWS_USER_USERAPI_H_ */ 120