Method

PurpleMessageget_attachment

since: 3.0

Declaration [src]

PurpleAttachment*
purple_message_get_attachment (
  PurpleMessage* message,
  guint64 id
)

Description [src]

Retrieves the PurpleAttachment identified by id from message.

Available since: 3.0

Parameters

id

Type: guint64

The id of the PurpleAttachment to get.

Return value

Type: PurpleAttachment

The PurpleAttachment if it was found, otherwise NULL.

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