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

Add input and output parameters to SAMPLE_LIB_Function to show more advanced generic stubs/hooks #56

Open
skliper opened this issue Mar 24, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@skliper
Copy link
Contributor

skliper commented Mar 24, 2021

Is your feature request related to a problem? Please describe.
SAMPLE_LIB_Function takes no parameters, so can't show example of registering them and using a hook.

Describe the solution you'd like
Add parameters (both pass by value and reference), update stubs to use suggested pattern:
UT_Stub_RegisterContextGenericArg(UT_KEY(SAMPLE_LIB_Function), param);

Follow on add a hook (likely from sample_app), register and show use of UT_Hook_GetArgValueByName.

Describe alternatives you've considered
There are plenty of implementations in core already, but hard to tell what the "gold standard" is. Need to trade complexity/simplicity though...

Additional context
None

Requester Info
Jacob Hageman - NASA/GSFC

@skliper skliper added the enhancement New feature or request label Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant