Skip to content

Commit be70c28

Browse files
committedFeb 20, 2025
lib: modem_info: deprecate modem_info_type_get
Deprecates the `modem_info_type_get` function in favor of the `modem_info_data_type_get` function. Signed-off-by: Mirko Covizzi <mirko.covizzi@nordicsemi.no>
1 parent 05c923e commit be70c28

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed
 

‎doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst

+2
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,8 @@ Modem libraries
651651
* The :c:enum:`modem_info_data_type` type for representing LTE link information data types.
652652
* The :c:func:`modem_info_data_type_get` function for requesting the data type of the current modem information type.
653653

654+
* Deprecated the :c:func:`modem_info_type_get` function in favor of the :c:func:`modem_info_data_type_get` function.
655+
654656
Multiprotocol Service Layer libraries
655657
-------------------------------------
656658

‎include/modem/modem_info.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -298,15 +298,18 @@ int modem_info_short_get(enum modem_info info, uint16_t *buf);
298298
*/
299299
int modem_info_name_get(enum modem_info info, char *name);
300300

301-
/** @brief Request the data type of the current modem information
302-
* type.
301+
/**
302+
* @deprecated Use @ref modem_info_data_type_get instead.
303+
*
304+
* @brief Request the data type of the current modem information
305+
* type.
303306
*
304307
* @param info The requested information type.
305308
*
306309
* @return The data type of the requested modem information data.
307310
* Otherwise, a (negative) error code is returned.
308311
*/
309-
enum at_param_type modem_info_type_get(enum modem_info info);
312+
__deprecated enum at_param_type modem_info_type_get(enum modem_info info);
310313

311314
/** @brief Request the data type of the current modem information
312315
* type.

‎lib/modem_info/modem_info.c

+1
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ static int map_nrf_modem_at_scanf_error(int err)
392392
}
393393
}
394394

395+
/* Deprecated in favor of `modem_info_data_type_get`. */
395396
enum at_param_type modem_info_type_get(enum modem_info info_type)
396397
{
397398
if (info_type >= MODEM_INFO_COUNT) {

0 commit comments

Comments
 (0)