• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 /**
17  * @addtogroup OsAccount
18  * @{
19  *
20  * @brief Provide the definition of the C interface for the native OsAccount.
21  * @since 12
22  */
23 
24 /**
25  * @file os_account_common.h
26  *
27  * @brief Declare the common types for the native OsAccount.
28  * @library libos_account_ndk.so
29  * @kit BasicServicesKit
30  * @syscap SystemCapability.Account.OsAccount
31  * @since 12
32  */
33 
34 #ifndef OS_ACCOUNT_COMMON_H
35 #define OS_ACCOUNT_COMMON_H
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 /**
42  * @brief Enumerates the error codes.
43  *
44  * @since 12
45  */
46 typedef enum OsAccount_ErrCode {
47     /** @error Operation is successful.*/
48     OS_ACCOUNT_ERR_OK = 0,
49 
50     /** @error Internal error.*/
51     OS_ACCOUNT_ERR_INTERNAL_ERROR = 12300001,
52 
53     /** @error Invalid parameter.*/
54     OS_ACCOUNT_ERR_INVALID_PARAMETER = 12300002
55 } OsAccount_ErrCode;
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 /** @} */
62 
63 #endif // OS_ACCOUNT_COMMON_H
64