1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     ubl_Api.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: 17231 $
11  *---------------------------------------------------------------------------
12 
13 
14 */
15 
16 #ifndef UBL_API_H_
17 #define UBL_API_H_
18 
19 #include<nn/fs.h>
20 #include<nn/fnd.h>
21 #include<nn/Result.h>
22 
23 namespace nn {
24 namespace ubl {
25 
26 /*=======================================================================*
27     Function Prototype Declarations
28  *=======================================================================*/
29 
30 /*
31 
32 
33 
34 
35 */
36 nn::Result Initialize( void );
37 
38 /*
39 
40  */
41 void Finalize( void );
42 
43 /*
44 
45 
46 
47 */
48 nn::Result Clear( void );
49 
50 /*
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 */
62 bool IsExist( u64 authorId , u32 titleId , u64 dataId);
63 
64 /*
65 
66 
67 
68 */
69 u32 GetTotalLocalUser( void );
70 
71 /*
72 
73 
74 
75 */
76 u64 GetUserId( void );
77 
78 /*
79 
80 
81 
82 
83 
84 */
85 bool GetUserName( wchar_t *name );
86 
87 /*
88 
89 
90 
91 
92 
93 
94 */
95 u64 GetHashValue( const void *inputBuffer , size_t inputSize);
96 
97 /*
98 
99 
100 
101 
102 
103 
104 */
105 nn::Result Entry( u64 id, nn::fnd::DateTime *dt );
106 
107 } // end of namespace ubl
108 } // end of namespace nn
109 
110 #endif /* UBL_API_H_ */
111