Constructor

PidginAttachmentnew

Declaration [src]

PidginAttachment*
pidgin_attachment_new (
  PurpleAttachment* attachment
)

Description [src]

Wraps attachment so that it can be used as a TalkatuAttachment.

Parameters

attachment

Type: PurpleAttachment

The PurpleAttachment to wrap.

The data is owned by the caller of the function.

Return value

Type: PidginAttachment

The new PidginAttachment instance.

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