Skip to content

Provide consistent name lookup API #943

@jphickey

Description

@jphickey

Is your feature request related to a problem? Please describe.
Many CFE resources have a name associated with them, but CFE is rather hit or miss on how Resource IDs (apps, tasks, libs, etc) can be looked up by name.

For instance, CFE_ES_GetAppIDByName() exists, but CFE_ES_GetLibIDByName() does not. Task IDs can be found directly via OSAL through OS_TaskGetIdByName() but there is no CFE version of this despite the fact that ES also tracks tasks.

Describe the solution you'd like
For resource types that have names associated, there should be a consistent API to find the ID by name, similar to CFE_ES_GetAppIDByName(). The following should be implemented, all with the general API pattern (name in, ID out, status return):

CFE_ES_GetTaskIDByName()
CFE_ES_GetLibIDByName()
CFE_ES_GetGenCounterIDByName()
CFE_ES_GetCDSBlockIDByName()

Describe alternatives you've considered
Keep things inconsistent.

Additional context
This is also a prerequisite to #28 - to have libs be manageable similarly to apps, part of that is being able to find lib ID by name, which is required by several management/query commands.

Requester Info
Joseph Hickey, Vantage Systems, Inc.

Edit - turns out and CFE_ES_GetGenCounterIDByName() does exist already. But the others do not.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions