-
Notifications
You must be signed in to change notification settings - Fork 213
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
OSAL should provide a typedef for "ID" values #555
Comments
Ping @skliper , @acudmore -- Stuff I'm working in CFE made me think of this - we are using |
You mean "Caelum"? If so, yes, that makes sense to me. |
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 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 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 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.
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.
Fix #555, provide typedef for OSAL ID
Is your feature request related to a problem? Please describe.
The OSAL API uses
uint32
type to identify objects/resources in an abstract way.Describe the solution you'd like
There should be a typedef for this. For instance:
This typedef can then be used in all APIs rather than using
uint32
directly.Describe alternatives you've considered
Keep using
uint32
.Additional context
Providing a typedef is generally accepted as good practice in terms of future proofing the code. This wouldn't change anything immediately, as the type will remain
uint32
as it currently is.Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: