Skip to content

Macro for SafeExtControl/drop #48

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

Merged
merged 3 commits into from
Mar 21, 2025
Merged

Macro for SafeExtControl/drop #48

merged 3 commits into from
Mar 21, 2025

Conversation

fritzk
Copy link
Contributor

@fritzk fritzk commented Mar 18, 2025

This is a follow up to the last pr where we discussed using a macro.

The FwhtFlags for v4l2_ctrl_fwht_params are the only ones that don't follow the same convention. They compile and look like they will work, but I don't have a way of testing.

fritzk added 3 commits March 18, 2025 09:17
Most of the code is boilerplate. The macro helps with code
duplication as well as making sure a drop is associated with each
control.

Signed-off-by: Fritz Koenig <[email protected]>
Signed-off-by: Fritz Koenig <[email protected]>
Signed-off-by: Fritz Koenig <[email protected]>
@Gnurou Gnurou merged commit c88ba34 into Gnurou:master Mar 21, 2025
1 check passed
@Gnurou
Copy link
Owner

Gnurou commented Mar 21, 2025

Thanks, that's super elegant! Merged.

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.

2 participants