Method

PurpleAccountSettingsget_int

unstable since: 3.0

Declaration [src]

int
purple_account_settings_get_int (
  PurpleAccountSettings* settings,
  const char* id,
  int fallback
)

Description [src]

Gets the value of an integer setting.

If a non integer 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: int

The fallback value.

Return value

Type: int

The value of the integer if found, otherwise fallback.