Constructor

PurpleRequestFieldImagenew

unstable since: 3.0

Declaration [src]

PurpleRequestField*
purple_request_field_image_new (
  const char* id,
  const char* label,
  PurpleImage* image
)

Description [src]

Creates an image field.

Available since: 3.0

Parameters

id

Type: const char*

The ID.

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

Type: const char*

The label.

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

Type: PurpleImage

The image.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: PurpleRequestFieldImage

The new field.

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