Skip to content

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

@skliper

Description

@skliper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions