Skip to content

Task:Add KVP_PROFILE macros for apis added to retrieve signed values #236

@kanjoe24

Description

@kanjoe24

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_t value 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_t value 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_t value 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

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Status

Resolved

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions