SDL_GetAppMetadataProperty(3)

SDL_GetAppMetadataProperty3

Get metadata about your app.

Usage

#include "SDL3/SDL.h"

const char * SDL_GetAppMetadataProperty(const char *name);

Header file

Defined in SDL3/SDL_init.h

Overview

This returns metadata previously set using

SDL_SetAppMetadata () or

SDL_SetAppMetadataProperty (). See

SDL_SetAppMetadataProperty () for the list of available properties and their meanings.

Function parameters

name

the name of the metadata property to get.

Return value

Returns the current value of the metadata property, or the default if it is not set, NULL for properties with no default.

Thread safety

It is safe to call this function from any thread, although the string returned is not protected and could potentially be freed if you call

SDL_SetAppMetadataProperty () to set that property from another thread.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.