@@ -44,6 +44,7 @@ aos::Error Storage::Init()
44
44
return aos::ErrorEnum::eNone;
45
45
}
46
46
47
+ // cppcheck-suppress unusedFunction
47
48
aos::Error Storage::AddInstance (const aos::InstanceInfo& instance)
48
49
{
49
50
aos::LockGuard lock (mMutex );
@@ -58,6 +59,7 @@ aos::Error Storage::AddInstance(const aos::InstanceInfo& instance)
58
59
});
59
60
}
60
61
62
+ // cppcheck-suppress unusedFunction
61
63
aos::Error Storage::UpdateInstance (const aos::InstanceInfo& instance)
62
64
{
63
65
aos::LockGuard lock (mMutex );
@@ -75,6 +77,7 @@ aos::Error Storage::UpdateInstance(const aos::InstanceInfo& instance)
75
77
return aos::ErrorEnum::eNone;
76
78
}
77
79
80
+ // cppcheck-suppress unusedFunction
78
81
aos::Error Storage::RemoveInstance (const aos::InstanceIdent& instanceIdent)
79
82
{
80
83
aos::LockGuard lock (mMutex );
@@ -90,6 +93,7 @@ aos::Error Storage::RemoveInstance(const aos::InstanceIdent& instanceIdent)
90
93
return aos::ErrorEnum::eNone;
91
94
}
92
95
96
+ // cppcheck-suppress unusedFunction
93
97
aos::Error Storage::GetAllInstances (aos::Array<aos::InstanceInfo>& instances)
94
98
{
95
99
aos::LockGuard lock (mMutex );
@@ -110,6 +114,7 @@ aos::Error Storage::GetAllInstances(aos::Array<aos::InstanceInfo>& instances)
110
114
return err;
111
115
}
112
116
117
+ // cppcheck-suppress unusedFunction
113
118
aos::Error Storage::AddService (const aos::sm::servicemanager::ServiceData& service)
114
119
{
115
120
aos::LockGuard lock (mMutex );
@@ -124,6 +129,7 @@ aos::Error Storage::AddService(const aos::sm::servicemanager::ServiceData& servi
124
129
});
125
130
}
126
131
132
+ // cppcheck-suppress unusedFunction
127
133
aos::Error Storage::UpdateService (const aos::sm::servicemanager::ServiceData& service)
128
134
{
129
135
aos::LockGuard lock (mMutex );
@@ -147,6 +153,7 @@ aos::Error Storage::RemoveService(const aos::String& serviceID, uint64_t aosVers
147
153
});
148
154
}
149
155
156
+ // cppcheck-suppress unusedFunction
150
157
aos::Error Storage::GetAllServices (aos::Array<aos::sm::servicemanager::ServiceData>& services)
151
158
{
152
159
aos::LockGuard lock (mMutex );
@@ -167,6 +174,7 @@ aos::Error Storage::GetAllServices(aos::Array<aos::sm::servicemanager::ServiceDa
167
174
return err;
168
175
}
169
176
177
+ // cppcheck-suppress unusedFunction
170
178
aos::RetWithError<aos::sm::servicemanager::ServiceData> Storage::GetService (const aos::String& serviceID)
171
179
{
172
180
aos::LockGuard lock (mMutex );
@@ -187,6 +195,7 @@ aos::RetWithError<aos::sm::servicemanager::ServiceData> Storage::GetService(cons
187
195
return aos::RetWithError<aos::sm::servicemanager::ServiceData>(*retServiceData);
188
196
}
189
197
198
+ // cppcheck-suppress unusedFunction
190
199
aos::Error Storage::AddCertInfo (const aos::String& certType, const aos::iam::certhandler::CertInfo& certInfo)
191
200
{
192
201
aos::LockGuard lock (mMutex );
@@ -205,6 +214,7 @@ aos::Error Storage::AddCertInfo(const aos::String& certType, const aos::iam::cer
205
214
});
206
215
}
207
216
217
+ // cppcheck-suppress unusedFunction
208
218
aos::Error Storage::RemoveCertInfo (const aos::String& certType, const aos::String& certURL)
209
219
{
210
220
aos::LockGuard lock (mMutex );
@@ -215,6 +225,7 @@ aos::Error Storage::RemoveCertInfo(const aos::String& certType, const aos::Strin
215
225
[&certType, &certURL](const CertInfo& data) { return data.mCertType == certType && data.mCertURL == certURL; });
216
226
}
217
227
228
+ // cppcheck-suppress unusedFunction
218
229
aos::Error Storage::RemoveAllCertsInfo (const aos::String& certType)
219
230
{
220
231
aos::LockGuard lock (mMutex );
@@ -229,6 +240,7 @@ aos::Error Storage::RemoveAllCertsInfo(const aos::String& certType)
229
240
return aos::ErrorEnum::eNone;
230
241
}
231
242
243
+ // cppcheck-suppress unusedFunction
232
244
aos::Error Storage::GetCertsInfo (const aos::String& certType, aos::Array<aos::iam::certhandler::CertInfo>& certsInfo)
233
245
{
234
246
aos::LockGuard lock (mMutex );
@@ -251,6 +263,7 @@ aos::Error Storage::GetCertsInfo(const aos::String& certType, aos::Array<aos::ia
251
263
return err;
252
264
}
253
265
266
+ // cppcheck-suppress unusedFunction
254
267
aos::Error Storage::GetCertInfo (
255
268
const aos::Array<uint8_t >& issuer, const aos::Array<uint8_t >& serial, aos::iam::certhandler::CertInfo& cert)
256
269
{
0 commit comments