@@ -102,7 +102,11 @@ struct at_param_list {
102
102
* @retval 0 If the operation was successful.
103
103
* Otherwise, a (negative) error code is returned.
104
104
*/
105
+ #if CONFIG_UNITY || CONFIG_ZTEST
106
+ int at_params_list_init (struct at_param_list * list , size_t max_params_count );
107
+ #else
105
108
__deprecated int at_params_list_init (struct at_param_list * list , size_t max_params_count );
109
+ #endif
106
110
107
111
/**
108
112
* @deprecated
@@ -112,7 +116,11 @@ __deprecated int at_params_list_init(struct at_param_list *list, size_t max_para
112
116
*
113
117
* @param[in] list Parameter list to clear.
114
118
*/
119
+ #if CONFIG_UNITY || CONFIG_ZTEST
120
+ void at_params_list_clear (struct at_param_list * list );
121
+ #else
115
122
__deprecated void at_params_list_clear (struct at_param_list * list );
123
+ #endif
116
124
117
125
/**
118
126
* @deprecated
@@ -122,7 +130,11 @@ __deprecated void at_params_list_clear(struct at_param_list *list);
122
130
*
123
131
* @param[in] list Parameter list to free.
124
132
*/
133
+ #if CONFIG_UNITY || CONFIG_ZTEST
134
+ void at_params_list_free (struct at_param_list * list );
135
+ #else
125
136
__deprecated void at_params_list_free (struct at_param_list * list );
137
+ #endif
126
138
127
139
/**
128
140
* @deprecated
@@ -138,7 +150,11 @@ __deprecated void at_params_list_free(struct at_param_list *list);
138
150
* @retval 0 If the operation was successful.
139
151
* Otherwise, a (negative) error code is returned.
140
152
*/
153
+ #if CONFIG_UNITY || CONFIG_ZTEST
154
+ int at_params_int_put (const struct at_param_list * list , size_t index , int64_t value );
155
+ #else
141
156
__deprecated int at_params_int_put (const struct at_param_list * list , size_t index , int64_t value );
157
+ #endif
142
158
143
159
/**
144
160
* @deprecated
@@ -156,8 +172,13 @@ __deprecated int at_params_int_put(const struct at_param_list *list, size_t inde
156
172
* @retval 0 If the operation was successful.
157
173
* Otherwise, a (negative) error code is returned.
158
174
*/
175
+ #if CONFIG_UNITY || CONFIG_ZTEST
176
+ int at_params_string_put (const struct at_param_list * list , size_t index ,
177
+ const char * str , size_t str_len );
178
+ #else
159
179
__deprecated int at_params_string_put (const struct at_param_list * list , size_t index ,
160
180
const char * str , size_t str_len );
181
+ #endif
161
182
162
183
/**
163
184
* @deprecated
@@ -179,8 +200,13 @@ __deprecated int at_params_string_put(const struct at_param_list *list, size_t i
179
200
* @retval 0 If the operation was successful.
180
201
* Otherwise, a (negative) error code is returned.
181
202
*/
203
+ #if CONFIG_UNITY || CONFIG_ZTEST
204
+ int at_params_array_put (const struct at_param_list * list , size_t index ,
205
+ const uint32_t * array , size_t array_len );
206
+ #else
182
207
__deprecated int at_params_array_put (const struct at_param_list * list , size_t index ,
183
208
const uint32_t * array , size_t array_len );
209
+ #endif
184
210
185
211
/**
186
212
* @deprecated
@@ -196,7 +222,11 @@ __deprecated int at_params_array_put(const struct at_param_list *list, size_t in
196
222
* @retval 0 If the operation was successful.
197
223
* Otherwise, a (negative) error code is returned.
198
224
*/
225
+ #if CONFIG_UNITY || CONFIG_ZTEST
226
+ int at_params_empty_put (const struct at_param_list * list , size_t index );
227
+ #else
199
228
__deprecated int at_params_empty_put (const struct at_param_list * list , size_t index );
229
+ #endif
200
230
201
231
/**
202
232
* @deprecated
@@ -211,7 +241,11 @@ __deprecated int at_params_empty_put(const struct at_param_list *list, size_t in
211
241
* @retval 0 If the operation was successful.
212
242
* Otherwise, a (negative) error code is returned.
213
243
*/
244
+ #if CONFIG_UNITY || CONFIG_ZTEST
245
+ int at_params_size_get (const struct at_param_list * list , size_t index , size_t * len );
246
+ #else
214
247
__deprecated int at_params_size_get (const struct at_param_list * list , size_t index , size_t * len );
248
+ #endif
215
249
216
250
/**
217
251
* @deprecated
@@ -224,8 +258,13 @@ __deprecated int at_params_size_get(const struct at_param_list *list, size_t ind
224
258
* @retval 0 If the operation was successful.
225
259
* Otherwise, a (negative) error code is returned.
226
260
*/
261
+ #if CONFIG_UNITY || CONFIG_ZTEST
262
+ int at_params_short_get (const struct at_param_list * list , size_t index ,
263
+ int16_t * value );
264
+ #else
227
265
__deprecated int at_params_short_get (const struct at_param_list * list , size_t index ,
228
266
int16_t * value );
267
+ #endif
229
268
230
269
/**
231
270
* @deprecated
@@ -238,8 +277,13 @@ __deprecated int at_params_short_get(const struct at_param_list *list, size_t in
238
277
* @retval 0 If the operation was successful.
239
278
* Otherwise, a (negative) error code is returned.
240
279
*/
280
+ #if CONFIG_UNITY || CONFIG_ZTEST
281
+ int at_params_unsigned_short_get (const struct at_param_list * list , size_t index ,
282
+ uint16_t * value );
283
+ #else
241
284
__deprecated int at_params_unsigned_short_get (const struct at_param_list * list , size_t index ,
242
285
uint16_t * value );
286
+ #endif
243
287
244
288
/**
245
289
* @deprecated
@@ -252,8 +296,13 @@ __deprecated int at_params_unsigned_short_get(const struct at_param_list *list,
252
296
* @retval 0 If the operation was successful.
253
297
* Otherwise, a (negative) error code is returned.
254
298
*/
299
+ #if CONFIG_UNITY || CONFIG_ZTEST
300
+ int at_params_int_get (const struct at_param_list * list , size_t index ,
301
+ int32_t * value );
302
+ #else
255
303
__deprecated int at_params_int_get (const struct at_param_list * list , size_t index ,
256
304
int32_t * value );
305
+ #endif
257
306
258
307
/**
259
308
* @deprecated
@@ -266,8 +315,13 @@ __deprecated int at_params_int_get(const struct at_param_list *list, size_t inde
266
315
* @retval 0 If the operation was successful.
267
316
* Otherwise, a (negative) error code is returned.
268
317
*/
318
+ #if CONFIG_UNITY || CONFIG_ZTEST
319
+ int at_params_unsigned_int_get (const struct at_param_list * list , size_t index ,
320
+ uint32_t * value );
321
+ #else
269
322
__deprecated int at_params_unsigned_int_get (const struct at_param_list * list , size_t index ,
270
323
uint32_t * value );
324
+ #endif
271
325
272
326
/**
273
327
* @deprecated
@@ -280,8 +334,13 @@ __deprecated int at_params_unsigned_int_get(const struct at_param_list *list, si
280
334
* @retval 0 If the operation was successful.
281
335
* Otherwise, a (negative) error code is returned.
282
336
*/
337
+ #if CONFIG_UNITY || CONFIG_ZTEST
338
+ int at_params_int64_get (const struct at_param_list * list , size_t index ,
339
+ int64_t * value );
340
+ #else
283
341
__deprecated int at_params_int64_get (const struct at_param_list * list , size_t index ,
284
342
int64_t * value );
343
+ #endif
285
344
286
345
/**
287
346
* @deprecated
@@ -301,8 +360,13 @@ __deprecated int at_params_int64_get(const struct at_param_list *list, size_t in
301
360
* @retval 0 If the operation was successful.
302
361
* Otherwise, a (negative) error code is returned.
303
362
*/
363
+ #if CONFIG_UNITY || CONFIG_ZTEST
364
+ int at_params_string_get (const struct at_param_list * list , size_t index ,
365
+ char * value , size_t * len );
366
+ #else
304
367
__deprecated int at_params_string_get (const struct at_param_list * list , size_t index ,
305
368
char * value , size_t * len );
369
+ #endif
306
370
307
371
/**
308
372
* @deprecated
@@ -320,8 +384,13 @@ __deprecated int at_params_string_get(const struct at_param_list *list, size_t i
320
384
* @retval 0 If the operation was successful.
321
385
* Otherwise, a (negative) error code is returned.
322
386
*/
387
+ #if CONFIG_UNITY || CONFIG_ZTEST
388
+ int at_params_string_ptr_get (const struct at_param_list * list , size_t index ,
389
+ const char * * at_param , size_t * len );
390
+ #else
323
391
__deprecated int at_params_string_ptr_get (const struct at_param_list * list , size_t index ,
324
392
const char * * at_param , size_t * len );
393
+ #endif
325
394
326
395
/**
327
396
* @deprecated
@@ -341,8 +410,13 @@ __deprecated int at_params_string_ptr_get(const struct at_param_list *list, size
341
410
* @retval 0 If the operation was successful.
342
411
* Otherwise, a (negative) error code is returned.
343
412
*/
413
+ #if CONFIG_UNITY || CONFIG_ZTEST
414
+ int at_params_array_get (const struct at_param_list * list , size_t index ,
415
+ uint32_t * array , size_t * len );
416
+ #else
344
417
__deprecated int at_params_array_get (const struct at_param_list * list , size_t index ,
345
418
uint32_t * array , size_t * len );
419
+ #endif
346
420
347
421
/**
348
422
* @deprecated
@@ -352,7 +426,11 @@ __deprecated int at_params_array_get(const struct at_param_list *list, size_t in
352
426
*
353
427
* @return The number of valid parameters until an empty parameter is found.
354
428
*/
429
+ #if CONFIG_UNITY || CONFIG_ZTEST
430
+ uint32_t at_params_valid_count_get (const struct at_param_list * list );
431
+ #else
355
432
__deprecated uint32_t at_params_valid_count_get (const struct at_param_list * list );
433
+ #endif
356
434
357
435
/**
358
436
* @deprecated
@@ -363,7 +441,11 @@ __deprecated uint32_t at_params_valid_count_get(const struct at_param_list *list
363
441
*
364
442
* @return Return parameter type of @ref at_param_type.
365
443
*/
444
+ #if CONFIG_UNITY || CONFIG_ZTEST
445
+ enum at_param_type at_params_type_get (const struct at_param_list * list , size_t index );
446
+ #else
366
447
__deprecated enum at_param_type at_params_type_get (const struct at_param_list * list , size_t index );
448
+ #endif
367
449
368
450
/** @} */
369
451
0 commit comments