-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #555, provide typedef for OSAL ID #568
Fix #555, provide typedef for OSAL ID #568
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 theuint32
type 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_t
typedef 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.