camera: SDL_GetCameraDeviceName() now follows the SDL_GetStringRule.

This commit is contained in:
Ryan C. Gordon
2024-06-13 18:13:51 -04:00
parent 2ad7c70ac6
commit 5bc654aad3
4 changed files with 7 additions and 9 deletions

View File

@@ -230,8 +230,7 @@ extern SDL_DECLSPEC SDL_CameraSpec *SDLCALL SDL_GetCameraDeviceSupportedFormats(
/**
* Get the human-readable device name for a camera.
*
* The returned string is owned by the caller; please release it with
* SDL_free() when done with it.
* The returned string follows the SDL_GetStringRule.
*
* \param instance_id the camera device instance ID
* \returns a human-readable device name, or NULL on error; call
@@ -243,7 +242,7 @@ extern SDL_DECLSPEC SDL_CameraSpec *SDLCALL SDL_GetCameraDeviceSupportedFormats(
*
* \sa SDL_GetCameraDevices
*/
extern SDL_DECLSPEC char * SDLCALL SDL_GetCameraDeviceName(SDL_CameraDeviceID instance_id);
extern SDL_DECLSPEC const char * SDLCALL SDL_GetCameraDeviceName(SDL_CameraDeviceID instance_id);
/**
* Get the position of the camera in relation to the system.