1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     ubl_Api.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_UBL_UBL_API_H_
17 #define NN_UBL_UBL_API_H_
18 
19 #include <nn/fnd.h>
20 #include <nn/Result.h>
21 
22 namespace nn {
23 namespace ubl {
24 
25 /*=======================================================================*
26     Function Prototype Declarations
27  *=======================================================================*/
28 
29 /*
30 
31 
32 
33 
34  */
35 nn::Result Initialize(void);
36 
37 /*
38 
39  */
40 void Finalize(void);
41 
42 /*
43 
44 
45 
46 
47 
48 
49 
50  */
51 nn::Result InitializeWithoutGlobalBlackList(void);
52 
53 /*
54 
55 
56 
57 
58 
59 
60  */
61 nn::Result Reload(bool enableGlobalBlackList = false);
62 
63 /*
64 
65 
66 
67  */
68 nn::Result Clear(void);
69 
70 /*
71 
72 
73 
74 
75 
76 
77 
78 
79 
80 
81  */
82 bool IsExist(u64 authorId , u32 titleId , u64 dataId);
83 
84 /*
85 
86 
87 
88  */
89 u32 GetTotalLocalUser(void);
90 
91 /*
92 
93 
94 
95 
96 
97  */
98 u64 GetUserId(void);
99 
100 /*
101 
102 
103 
104 
105 
106  */
107 bool GetUserName(wchar_t* name);
108 
109 /*
110 
111 
112 
113 
114 
115 
116  */
117 u64 GetHashValue(const void* inputBuffer , size_t inputSize);
118 
119 /*
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 
130  */
131 nn::Result Entry(u64 id, const nn::fnd::DateTime* dt);
132 
133 } // end of namespace ubl
134 } // end of namespace nn
135 
136 #endif /* NN_UBL_UBL_API_H_ */
137