1413470f0Sopenharmony_ci/*
2413470f0Sopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd.
3413470f0Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4413470f0Sopenharmony_ci * you may not use this file except in compliance with the License.
5413470f0Sopenharmony_ci * You may obtain a copy of the License at
6413470f0Sopenharmony_ci *
7413470f0Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8413470f0Sopenharmony_ci *
9413470f0Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10413470f0Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11413470f0Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12413470f0Sopenharmony_ci * See the License for the specific language governing permissions and
13413470f0Sopenharmony_ci * limitations under the License.
14413470f0Sopenharmony_ci */
15413470f0Sopenharmony_ci
16413470f0Sopenharmony_ci#include <iunknown.h>
17413470f0Sopenharmony_ci#include "battery_manage_feature.h"
18413470f0Sopenharmony_ci
19413470f0Sopenharmony_cistatic BatteryFeatureApi g_feature = {
20413470f0Sopenharmony_ci    BATTERY_FEATURE_INTERFACE_IMPL,
21413470f0Sopenharmony_ci    DEFAULT_IUNKNOWN_ENTRY_BEGIN,
22413470f0Sopenharmony_ci    BATTERY_INTERFACE_IMPL,
23413470f0Sopenharmony_ci    DEFAULT_IUNKNOWN_ENTRY_END,
24413470f0Sopenharmony_ci    .identity_ = { -1, -1, NULL },
25413470f0Sopenharmony_ci};
26413470f0Sopenharmony_ci
27413470f0Sopenharmony_ciBatteryFeatureApi *GetBatteryFeatureImpl(void)
28413470f0Sopenharmony_ci{
29413470f0Sopenharmony_ci    return &g_feature;
30413470f0Sopenharmony_ci}
31