update frameworks/resmgr/include/resource_manager_ext_mgr.h.

Signed-off-by: 冉召宇 <ranzhaoyu1@huawei.com>
This commit is contained in:
冉召宇 2024-08-08 03:37:31 +00:00 committed by Gitee
parent 8414e083f2
commit 27db40e346
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1 +1,41 @@
/*
* Copyright (c) 2023 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 OHOS_RESOURCE_MANAGER_RESOURCEMANAGEREXTMGR_H
#define OHOS_RESOURCE_MANAGER_RESOURCEMANAGEREXTMGR_H
#if !defined(__WINNT__) && !defined(__IDE_PREVIEW__) && !defined(__ARKUI_CROSS__)
#include "resource_manager.h"
namespace OHOS {
namespace Global {
namespace Resource {
typedef int (*IResMgrExt) (std::shared_ptr<ResourceManager> &resMgrExt, const std::string &bundleName,
const int32_t appType);
class ResourceManagerExtMgr {
public:
ResourceManagerExtMgr();
virtual ~ResourceManagerExtMgr();
bool Init(std::shared_ptr<ResourceManager> &resMgrExt, const std::string &bundleName, const int32_t appType);
private:
void *handle_ = nullptr;
std::map<std::string, std::shared_ptr<ResourceManager>> resMgrExtMap_;
};
} // namespace Resource
} // namespace Global
} // namespace OHOS
#endif
#endif