Constructor
PurpleQrCodenew
unstable since: 3.0
Declaration [src]
PurpleQrCode*
purple_qr_code_new (
const char* title,
const char* description,
const char* text,
const char* alt_text
)
Parameters
title-
Type:
const char*The title.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. description-
Type:
const char*The description.
The argument can be NULL.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 to be encoded.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. alt_text-
Type:
const char*The alt text.
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: PurpleQrCode
The new instance.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |