188edb362Sopenharmony_ci/*
288edb362Sopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
388edb362Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
488edb362Sopenharmony_ci * you may not use this file except in compliance with the License.
588edb362Sopenharmony_ci * You may obtain a copy of the License at
688edb362Sopenharmony_ci *
788edb362Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
888edb362Sopenharmony_ci *
988edb362Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1088edb362Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1188edb362Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1288edb362Sopenharmony_ci * See the License for the specific language governing permissions and
1388edb362Sopenharmony_ci * limitations under the License.
1488edb362Sopenharmony_ci */
1588edb362Sopenharmony_ci
1688edb362Sopenharmony_ci#ifndef SYS_INSTALLER_MODULE_DM_H
1788edb362Sopenharmony_ci#define SYS_INSTALLER_MODULE_DM_H
1888edb362Sopenharmony_ci
1988edb362Sopenharmony_ci#include <string>
2088edb362Sopenharmony_ci
2188edb362Sopenharmony_ci#include "module_file.h"
2288edb362Sopenharmony_ci
2388edb362Sopenharmony_ci#ifdef __cplusplus
2488edb362Sopenharmony_ci#if __cplusplus
2588edb362Sopenharmony_ciextern "C" {
2688edb362Sopenharmony_ci#endif
2788edb362Sopenharmony_ci#endif
2888edb362Sopenharmony_ci
2988edb362Sopenharmony_cibool CreateDmDevice(const OHOS::SysInstaller::ModuleFile &moduleFile, std::string &deviceName);
3088edb362Sopenharmony_cibool RemoveDmDevice(std::string deviceName);
3188edb362Sopenharmony_ci
3288edb362Sopenharmony_ci#ifdef __cplusplus
3388edb362Sopenharmony_ci#if __cplusplus
3488edb362Sopenharmony_ci}
3588edb362Sopenharmony_ci#endif
3688edb362Sopenharmony_ci#endif
3788edb362Sopenharmony_ci#endif // SYS_INSTALLER_MODULE_DM_H
38