Constructor
PurpleAttachmentnew
unstable since: 3.0
Declaration [src]
PurpleAttachment*
purple_attachment_new (
  const char* 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:
const char*The identifier of the attachment.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.  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. |