Constructor
PurpleRequestFieldImagenew
since: 2.0
Declaration [src]
PurpleRequestField*
purple_request_field_image_new (
  const char* id,
  const char* text,
  const char* buf,
  gsize size
)
      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 label of the field.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.  buf- 
            
Type:
const char*The image data.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.  size- 
            
Type:
gsizeThe size of the data in
buf. 
Return value
Type: PurpleRequestFieldImage
The new field.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |