Constructor

PurpleAttachmentnew

unstable since: 3.0

Declaration [src]

PurpleAttachment*
purple_attachment_new (
  guint64 id,
  const char* content_type
)

Description [src]

Creates a new PurpleAttachment with the given id and content_type.

Available since: 3.0

Parameters

id

Type: guint64

The identifier of the attachment.

content_type

Type: const char*

The mime-type of the content.

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

Return value

Type: PurpleAttachment

The new attachment.

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