1 /*
2 * Copyright (c) 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 "lnn_device_info_recovery.h"
17
18 #include "softbus_errcode.h"
19
LnnLoadLocalDeviceInfo(void)20 int32_t LnnLoadLocalDeviceInfo(void)
21 {
22 return SOFTBUS_NOT_IMPLEMENT;
23 }
24
LnnLoadRemoteDeviceInfo(void)25 int32_t LnnLoadRemoteDeviceInfo(void)
26 {
27 return SOFTBUS_NOT_IMPLEMENT;
28 }
29
LnnSaveLocalDeviceInfo(const NodeInfo * deviceInfo)30 int32_t LnnSaveLocalDeviceInfo(const NodeInfo *deviceInfo)
31 {
32 (void)deviceInfo;
33 return SOFTBUS_NOT_IMPLEMENT;
34 }
35
LnnGetAllRemoteDevInfo(NodeInfo ** info,int32_t * nums)36 int32_t LnnGetAllRemoteDevInfo(NodeInfo **info, int32_t *nums)
37 {
38 (void)info;
39 (void)nums;
40 return SOFTBUS_NOT_IMPLEMENT;
41 }
42
LnnGetLocalDevInfo(NodeInfo * deviceInfo)43 int32_t LnnGetLocalDevInfo(NodeInfo *deviceInfo)
44 {
45 (void)deviceInfo;
46 return SOFTBUS_NOT_IMPLEMENT;
47 }
48
LnnSaveRemoteDeviceInfo(const NodeInfo * deviceInfo)49 int32_t LnnSaveRemoteDeviceInfo(const NodeInfo *deviceInfo)
50 {
51 (void)deviceInfo;
52 return SOFTBUS_NOT_IMPLEMENT;
53 }
54
LnnUpdateRemoteDeviceInfo(const NodeInfo * deviceInfo)55 int32_t LnnUpdateRemoteDeviceInfo(const NodeInfo *deviceInfo)
56 {
57 (void)deviceInfo;
58 return SOFTBUS_NOT_IMPLEMENT;
59 }
60
LnnRetrieveDeviceInfo(const char * udid,NodeInfo * deviceInfo)61 int32_t LnnRetrieveDeviceInfo(const char *udid, NodeInfo *deviceInfo)
62 {
63 (void)udid;
64 (void)deviceInfo;
65 return SOFTBUS_NOT_IMPLEMENT;
66 }
67
LnnRetrieveDeviceInfoByNetworkId(const char * networkId,NodeInfo * info)68 int32_t LnnRetrieveDeviceInfoByNetworkId(const char *networkId, NodeInfo *info)
69 {
70 (void)networkId;
71 (void)info;
72 return SOFTBUS_NOT_IMPLEMENT;
73 }
74
LnnDeleteDeviceInfo(const char * udid)75 void LnnDeleteDeviceInfo(const char *udid)
76 {
77 (void)udid;
78 return;
79 }
80
ClearDeviceInfo(void)81 void ClearDeviceInfo(void)
82 {
83 return;
84 }
85
LnnGetUdidByBrMac(const char * brMac,char * udid,uint32_t udidLen)86 int32_t LnnGetUdidByBrMac(const char *brMac, char *udid, uint32_t udidLen)
87 {
88 (void)brMac;
89 (void)udid;
90 (void)udidLen;
91 return SOFTBUS_NOT_IMPLEMENT;
92 }
93
LnnGetLocalCacheNodeInfo(NodeInfo * info)94 int32_t LnnGetLocalCacheNodeInfo(NodeInfo *info)
95 {
96 (void)info;
97 return SOFTBUS_NOT_IMPLEMENT;
98 }
99
LnnLoadLocalDeviceAccountIdInfo(void)100 int32_t LnnLoadLocalDeviceAccountIdInfo(void)
101 {
102 return SOFTBUS_NOT_IMPLEMENT;
103 }
104
LnnGetAccountIdFromLocalCache(int64_t * buf)105 int32_t LnnGetAccountIdFromLocalCache(int64_t *buf)
106 {
107 (void)buf;
108 return SOFTBUS_NOT_IMPLEMENT;
109 }
110
LnnPackCloudSyncDeviceInfo(cJSON * json,const NodeInfo * cloudSyncInfo)111 int32_t LnnPackCloudSyncDeviceInfo(cJSON *json, const NodeInfo *cloudSyncInfo)
112 {
113 (void)json;
114 (void)cloudSyncInfo;
115 return SOFTBUS_NOT_IMPLEMENT;
116 }
117
LnnUnPackCloudSyncDeviceInfo(cJSON * json,NodeInfo * cloudSyncInfo)118 int32_t LnnUnPackCloudSyncDeviceInfo(cJSON *json, NodeInfo *cloudSyncInfo)
119 {
120 (void)json;
121 (void)cloudSyncInfo;
122 return SOFTBUS_NOT_IMPLEMENT;
123 }
124
LnnUpdateAuthExchangeUdid(void)125 void LnnUpdateAuthExchangeUdid(void)
126 {
127 return;
128 }
129
LnnClearAuthExchangeUdid(const char * networkId)130 void LnnClearAuthExchangeUdid(const char *networkId)
131 {
132 (void)networkId;
133 return;
134 }