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#ifndef OS_ACCOUNT_COMMON_H 17#define OS_ACCOUNT_COMMON_H 18 19/** 20 * @addtogroup OsAccount 21 * @{ 22 * 23 * @brief Provide the definition of the C interface for the native OsAccount. 24 * @since 12 25 */ 26/** 27 * @file os_account_common.h 28 * 29 * @brief Declare the common types for the native OsAccount. 30 * @library libos_account_ndk.so 31 * @kit BasicServicesKit 32 * @syscap SystemCapability.Account.OsAccount 33 * @since 12 34 */ 35 36#ifdef __cplusplus 37extern "C" { 38#endif 39 40/** 41 * @brief Enumerates the error codes. 42 * 43 * @since 12 44 */ 45typedef enum OsAccount_ErrCode { 46 /** @error Operation is successful.*/ 47 OS_ACCOUNT_ERR_OK = 0, 48 49 /** @error Internal error.*/ 50 OS_ACCOUNT_ERR_INTERNAL_ERROR = 12300001, 51 52 /** @error Invalid parameter.*/ 53 OS_ACCOUNT_ERR_INVALID_PARAMETER = 12300002 54} OsAccount_ErrCode; 55 56#ifdef __cplusplus 57} 58#endif 59 60/** @} */ 61 62#endif // OS_ACCOUNT_COMMON_H 63