Skip to content

Introduce enum for SDL_GetCameraPermissionState result #13756

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kavika13
Copy link

Description

The values returned from SDL_GetCameraPermissionState are a small set (-1, 0, 1).

Those integer values are defined and set directly within SDL code, and not pulled from system APIs, so I don't think there's a chance values could fall outside that enumerated range. So this introduces an enumeration for those values.

This does modify an existing API's return type, but I think it should mostly be compatible. The integer values are not changed.

I'm not sure if this type of change is welcome or not. It's not a bug fix and it technically affects the signature of an existing API, though I think it is changed in a compatible way.

Existing Issue(s)

n/a

@sezero sezero requested review from slouken and icculus and removed request for slouken August 16, 2025 10:12
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