Function

PurpleAccountOptionstring_new

since: 2.0

Declaration [src]

PurpleAccountOption*
purple_account_option_string_new (
  const gchar* text,
  const gchar* pref_name,
  const gchar* default_value
)

Description [src]

Creates a new string account option.

Available since: 2.0

Parameters

text

Type: const gchar*

The text of the option.

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

Type: const gchar*

The account preference name for the option.

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

Type: const gchar*

The default value.

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

Return value

Type: PurpleAccountOption

The account option.

The caller of the function takes ownership of the data, and is responsible for freeing it.