Constructor

PurpleRequestFieldQRCodenew

unstable since: 3.0

Declaration [src]

PurpleRequestField*
purple_request_field_qr_code_new (
  const char* id,
  const char* url
)

Description [src]

Creates a QR Code 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.
url

Type: const char*

The url.

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

Return value

Type: PurpleRequestFieldQRCode

The new field.

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