Constructor

PurpleRequestFieldAccountnew

Declaration [src]

PurpleRequestField*
purple_request_field_account_new (
  const char* id,
  const char* text,
  PurpleAccount* account
)

Description [src]

Creates an account field.

By default, this field will not show offline accounts.

Parameters

id

Type: const char*

The field ID.

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

Type: const char*

The text label of the field.

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

Type: PurpleAccount

The optional default account.

The data is owned by the caller of the function.

Return value

Type: PurpleRequestField

The new field.

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