Fix #555, provide typedef for OSAL ID#568
Fix #555, provide typedef for OSAL ID#568yammajamma merged 3 commits intonasa:integration-candidatefrom
Conversation
|
Marked as draft because it depends on some other changes being merged first - removal of deprecated code in particular as otherwise this would require updating all of them to use the typedef (which doesn't seem worthwhile). Actual change for review is in de3c985 Will rebase after next cycle. |
4a90c43 to
de3c985
Compare
|
Marking as CCB ready, the concept can be reviewed/discussed prior to rebase |
|
CCB 2020-08-19 APPROVED |
de3c985 to
c72a681
Compare
|
Rebased to integration-candidate - should be ready for merge |
|
NOTE - testing after rebase, I noticed there are some newly-written unit tests that will need to be updated to use |
|
Commit 0f54017 above updates the new test routines to use the typedef correctly/consistently. Now this should be good to merge. |
Integration Candidate: 2020-08-26
Update all internal OSAL code to use the typedef when creating, storing, or otherwise dealing with abstract ID values. Removes/fixes any code that directly compares or casts the IDs between normal integer values. Replace equality comparisons with inline functions to check for equality and validity.
Update file-sys-add-fixed-map-api-test and network-api-test to use the osal_id_t typedef and proper conversion/test functions for manipulating object IDs.
0f54017 to
a277cd1
Compare
|
Rebased to main again ... still hoping to get this into a build.... |
Fix nasa#297, CCSDS Command Secondary Header Endian Agnostic
Describe the contribution
Introduces a new typedef,
osal_id_t, incommon_types.h, which should be used to represent an OSAL ID. All API structures/functions are updated to use this typedef in place of theuint32type wherever it actually refers to an OSAL ID.Adds inline functions for basic equality/validity check, and conversion back to bare integer for logging purposes.
Fixes #555
Testing performed
Build and run all unit tests
Execute and sanity test CFE.
Expected behavior changes
Should be none. As the
osal_id_ttypedef is auint32, this is just an alias for the same thing.System(s) tested on
Ubuntu 20.04
RTEMS 4.11.3
Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.