Function
PurpleAccountOptionint_new
since: 2.0
Declaration [src]
PurpleAccountOption*
purple_account_option_int_new (
const char* text,
const char* pref_name,
int default_value
)
Parameters
text
-
Type:
const char*
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 char*
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:
int
The default value.
Return value
Type: PurpleAccountOption
The account option.
The caller of the function takes ownership of the data, and is responsible for freeing it. |