Constructor

PurpleAttachmentnew

since: 3.0

Declaration [src]

PurpleAttachment*
purple_attachment_new (
  guint64 id,
  const gchar* 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 gchar*

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

No description available.

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