Files
ability_ability_runtime/interfaces/inner_api/native_extension/context_impl.h
T
majian 11d85626bb update
Signed-off-by: majian <majian59@h-partners.com>
2025-12-15 19:34:01 +08:00

34 lines
984 B
C++

/*
* Copyright (c) 2025 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.
*/
#ifndef ABILITY_RUNTIME_CONTEXT_IMPL_H
#define ABILITY_RUNTIME_CONTEXT_IMPL_H
#include "context/context.h"
#ifdef __cplusplus
extern "C" {
#endif
struct AbilityRuntime_Context {
OHOS::AppExecFwk::ExtensionAbilityType type;
std::weak_ptr<OHOS::AbilityRuntime::Context> context;
};
#ifdef __cplusplus
} // extern "C"
#endif
#endif // ABILITY_RUNTIME_CONTEXT_IMPL_H