Method

PurpleAccountSettingsget_string

unstable since: 3.0

Declaration [src]

const char*
purple_account_settings_get_string (
  PurpleAccountSettings* settings,
  const char* id,
  const char* fallback
)

Description [src]

Gets the value of a string setting.

If a non string setting exists with id, fallback will be returned.

Available since: 3.0

Parameters

id

Type: const char*

The id of the setting.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
fallback

Type: const char*

The fallback value.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: const char*

The value of the string if found, otherwise fallback.

The returned data is owned by the instance.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.