• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "softbus_file_adapter.h"
17 #include "dtbcollabmgr_log.h"
18 #include <string>
19 
20 namespace OHOS {
21 namespace DistributedCollab {
22 IMPLEMENT_SINGLE_INSTANCE(SoftbusFileAdpater);
23 namespace {
24     static const std::string TAG = "SoftbusFileAdpaterCommon";
25 }
26 
SetFileSchema(int32_t socketId)27 int32_t SoftbusFileAdpater::SetFileSchema(int32_t socketId)
28 {
29     HILOGI("common empty SoftbusFileAdpater::SetFileSchema");
30     return ERR_OK;
31 }
32 
Open(const char * filename,int32_t flag,int32_t mode)33 int32_t SoftbusFileAdpater::Open(const char* filename, int32_t flag, int32_t mode)
34 {
35     HILOGI("common empty SoftbusFileAdpater::Open");
36     return ERR_OK;
37 }
38 
Close(int32_t fd)39 int32_t SoftbusFileAdpater::Close(int32_t fd)
40 {
41     HILOGI("common empty SoftbusFileAdpater::Close");
42     return ERR_OK;
43 }
44 
Remove(const char * filename)45 int32_t SoftbusFileAdpater::Remove(const char* filename)
46 {
47     HILOGI("common empty SoftbusFileAdpater::Remove");
48     return ERR_OK;
49 }
50 
CreateParentDirs(const char * filename)51 int32_t SoftbusFileAdpater::CreateParentDirs(const char* filename)
52 {
53     HILOGI("create all parent dirs");
54     return ERR_OK;
55 }
56 
CreateDir(const std::string & path)57 int32_t SoftbusFileAdpater::CreateDir(const std::string& path)
58 {
59     HILOGI("create dir");
60     return ERR_OK;
61 }
62 }
63 }