1 /*
2  * Copyright (c) 2022-2023 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 
GetNodeKeyInfo(const char * pkgName,const char * networkId,NodeDeviceInfoKey key,uint8_t * info,int32_t infoLen)30 int32_t GetNodeKeyInfo(const char *pkgName, const char *networkId,
31     NodeDeviceInfoKey key, uint8_t *info, int32_t infoLen)
32 {
33     (void)pkgName;
34     (void)networkId;
35     (void)key;
36     (void)info;
37     (void)infoLen;
38     return DH_SUCCESS;
39 }