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 Pre-Update Callback Function Trigger to Parameter Update Process #28

Open
wants to merge 1 commit into
base: kinetic-devel
Choose a base branch
from

Conversation

furushchev
Copy link

Hi! I want to propose a new feature for this great library!

This pull request adds a trigger point for a callback function right before any parameter value is updated.
This enhancement complements the existing functionality where a callback can be called after the parameter update.

Motivation

Some camera devices must stop streaming before changing settings and then restart it after the update.
This pre-update callback will provide users with the flexibility to programmatically handle such scenarios.

Changes

  • Added setPreUpdateCallback / clearPreUpdateCallback
  • Added setPostUpdateCallback (which is identical to the original setUserCallback)

Backward Compatibility

This change is fully backward compatible. (The original methods are kept as-is)
The new callback is optional and does not affect the existing workflow if not used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant