Skip to content
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 #603, Full context info for EVS event stubs #713

Merged

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented May 21, 2020

Describe the contribution
Create a va_list object to capture the full set of variable arguments passed to CFE_EVS_SendEvent and variants (TimedEvent, WithAppID). Use the variable argument form of the stub implementation to pass all info through to a (possible) hook function.

Fixes #603

Testing performed
Build all unit tests and confirm normal operation, all passing.

Expected behavior changes
Hook functions may now use the va_list form and obtain the full context info.

System(s) tested on
Ubuntu 20.04

Additional context
see also nasa/osal#479, nasa/sample_app#66 for other related enhancements.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

@jphickey
Copy link
Contributor Author

This is currently a draft as it is baselined to the integration-candidate because it conflicts with #673. Will rebase after next master merge.

In the meantime, only change here for review is commit 4baf092.

@skliper
Copy link
Contributor

skliper commented May 21, 2020

Are you planning another PR for CFE_ES_WriteToSysLog?

@jphickey
Copy link
Contributor Author

Are you planning another PR for CFE_ES_WriteToSysLog?

See commit 4cbd761, will squash when I rebase.

@jphickey jphickey changed the base branch from master to integration-candidate May 21, 2020 18:43
@astrogeco astrogeco added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label May 27, 2020
@astrogeco
Copy link
Contributor

CCB 2020-05-27 APPROVED, @jphickey Create a new issue to refer to items by name.

@skliper
Copy link
Contributor

skliper commented May 27, 2020

CCB 2020-05-27 APPROVED, @jphickey Create a new issue to refer to items by name.

Added issue #717

@astrogeco astrogeco removed the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label May 28, 2020
@astrogeco
Copy link
Contributor

@jphickey can I remove the draft label?

@astrogeco astrogeco added the CCB:Approved Indicates code review and approval by community CCB label Jun 1, 2020
Add a va_list to capture the full set of variable arguments
on all CFE_EVS event calls.

Also add va_list for CFE_ES_WriteToSyslog
@jphickey jphickey marked this pull request as ready for review June 1, 2020 18:28
@jphickey
Copy link
Contributor Author

jphickey commented Jun 1, 2020

@astrogeco Rebased to "master', should good to go now.

@astrogeco astrogeco merged commit 0e3a00a into nasa:integration-candidate Jun 2, 2020
@jphickey jphickey deleted the fix-603-add-evs-stub-args branch June 19, 2020 16:29
@skliper skliper added this to the 6.8.0 milestone Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CFE_EVS_SendEvent stub should provide full context
3 participants