Add KVP_PROFILE macros for signed integer APIs (int8, int16, int32, int64)#237
Closed
Add KVP_PROFILE macros for signed integer APIs (int8, int16, int32, int64)#237
Conversation
…nt64) Added UT_KVP_PROFILE_GET_INT8/INT16/INT32/INT64 getter macros and UT_ASSERT_KVP_EQUAL_PROFILE_INT8/INT16/INT32/INT64 assert macros in ut_kvp_profile.h for the new signed integer APIs from ut-control. Also added: - Weak implementations for ut_kvp_getInt8/16/32/64Field - Test data for signed integers in YAML and JSON test assets - Test functions exercising the new macros in both YAML and JSON suites Co-authored-by: kanjoe24 <165808281+kanjoe24@users.noreply.github.com> Agent-Logs-Url: https://github.com/rdkcentral/ut-core/sessions/75aa1437-0247-48e0-963d-421645dd54a0
…ignore Co-authored-by: kanjoe24 <165808281+kanjoe24@users.noreply.github.com> Agent-Logs-Url: https://github.com/rdkcentral/ut-core/sessions/75aa1437-0247-48e0-963d-421645dd54a0
Copilot
AI
changed the title
[WIP] Add KVP_PROFILE macros for APIs retrieving signed values
Add KVP_PROFILE macros for signed integer APIs (int8, int16, int32, int64)
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New signed integer APIs (
ut_kvp_getInt8Field,ut_kvp_getInt16Field,ut_kvp_getInt32Field,ut_kvp_getInt64Field) were added to ut-control. This PR adds the corresponding profile macros in ut-core.Changes
include/ut_kvp_profile.h— Added getter macros (UT_KVP_PROFILE_GET_INT8/16/32/64) and assert macros (UT_ASSERT_KVP_EQUAL_PROFILE_INT8/16/32/64), mirroring existing unsigned variantstests/src_weak/ut_test_weak_kvp.c— Added weak implementations for the four newut_kvp_getInt*Fieldfunctionstests/src/assets/test_kvp.yaml/test_kvp.json— Added signed integer test data (positive and negative values)tests/src/c_source/ut_test_kvp_profile.c— Added test functions for int8/16/32/64 registered in both YAML and JSON suitesUsage
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
sourceforge.net/usr/bin/wget wget REDACTED --no-check-certificate -P /home/REDACTED/work/ut-core/ut-core/framework(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.