-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Goal
As per the branch:
https://github.com/rdkcentral/ut-control/blob/feature/add-support-for-reading-signed-values/include/ut_kvp.h
New Apis have been added, which looks like below:
int8_t ut_kvp_getInt8Field(ut_kvp_instance_t *pInstance, const char *pszKey);
/**!
- @brief Gets an int16_t value from the KVP profile.
- @param[in] pInstance - Handle to the KVP instance.
- @param[in] pszKey - Null-terminated string representing the key to search for.
- @returns The
int16_tvalue on success, or 0 on error (check logs for details).
*/
int16_t ut_kvp_getInt16Field(ut_kvp_instance_t *pInstance, const char *pszKey);
/**!
- @brief Gets an int32_t value from the KVP profile.
- @param[in] pInstance - Handle to the KVP instance.
- @param[in] pszKey - Null-terminated string representing the key to search for.
- @returns The
int32_tvalue on success, or 0 on error (check logs for details).
*/
int32_t ut_kvp_getInt32Field(ut_kvp_instance_t *pInstance, const char *pszKey);
/**!
- @brief Gets an int64_t value from the KVP profile.
- @param[in] pInstance - Handle to the KVP instance.
- @param[in] pszKey - Null-terminated string representing the key to search for.
- @returns The
int64_tvalue on success, or 0 on error (check logs for details).
*/
int64_t ut_kvp_getInt64Field(ut_kvp_instance_t *pInstance, const char *pszKey);
Create UT_ASSERT_KVP_* macros for the above apis in ut_kvp_profile.h
Notes (Optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Labels
No labels
Type
Projects
Status
Resolved