interface_sdk_c/AbilityKit/ability_runtime/ability_runtime_common.h
yangzk f189500575 Description: 新增applicationContext错误码ABILITY_RUNTIME_ERROR_CODE_CONTEXT_NOT_EXIST
IssueNo: #IAPOX6
Sig: SIG_ApplicationFramework
Feature or Bugfix: Bugfix
Binary Source: No

Signed-off-by: yangzk <yangzhongkai@huawei.com>
Change-Id: I25509e923f6ebaeffaec07ee0bdc852b60762ee5
2024-09-08 17:18:49 +08:00

64 lines
1.6 KiB
C

/*
* Copyright (C) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @addtogroup AbilityRuntime
* @{
*
* @brief Provide the definition of the C interface for the native AbilityRuntime
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 13
*/
/**
* @file ability_runtime_common.h
*
* @brief Declare the common types for the native AbilityRuntime.
*
* @library libability_runtime.so
* @kit AbilityKit
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 13
*/
#ifndef ABILITY_RUNTIME_COMMON_H
#define ABILITY_RUNTIME_COMMON_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Enumerates the error codes.
*
* @since 13
*/
typedef enum {
/** @error No error. */
ABILITY_RUNTIME_ERROR_CODE_NO_ERROR = 0,
/** @error Invalid parameters. */
ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID = 401,
/** @error The context does not exist. */
ABILITY_RUNTIME_ERROR_CODE_CONTEXT_NOT_EXIST = 16000011,
} AbilityRuntime_ErrorCode;
#ifdef __cplusplus
}
#endif
/** @} */
#endif // ABILITY_RUNTIME_COMMON_H