1 /*
2  * Copyright (c) 2022 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_bus_center.h"
17 
18 constexpr int32_t DH_SUCCESS = 0;
GetLocalNodeDeviceInfo(const char * pkgName,NodeBasicInfo * info)19 int32_t GetLocalNodeDeviceInfo(const char *pkgName, NodeBasicInfo *info)
20 {
21     NodeBasicInfo nodeBasicInfo_ = {
22         .networkId = "networkidc08647073e02e7a78f09473aa122ff57fc81c00",
23         .deviceName = "f6d4c08647073e02e7a78f09473aa122ff57fc81c00981fcf5be989e7d112591",
24         .deviceTypeId = 1};
25     (void)pkgName;
26     *info = nodeBasicInfo_;
27     return DH_SUCCESS;
28 }
29 
StartTimeSync(const char * pkgName,const char * targetNetworkId,TimeSyncAccuracy accuracy,TimeSyncPeriod period,ITimeSyncCb * cb)30 int32_t StartTimeSync(const char *pkgName, const char *targetNetworkId, TimeSyncAccuracy accuracy,
31     TimeSyncPeriod period, ITimeSyncCb *cb)
32 {
33     (void)pkgName;
34     (void)targetNetworkId;
35     (void)accuracy;
36     (void)period;
37     (void)cb;
38     return DH_SUCCESS;
39 }
40 
StopTimeSync(const char * pkgName,const char * targetNetworkId)41 int32_t StopTimeSync(const char *pkgName, const char *targetNetworkId)
42 {
43     (void)pkgName;
44     (void)targetNetworkId;
45     return DH_SUCCESS;
46 }