Function

TalkatuSimpleAttachmentnew

Declaration [src]

TalkatuAttachment*
talkatu_simple_attachment_new (
  guint64 id,
  const gchar* content_type
)

Description [src]

Creates a new attachment with content_type.

Parameters

id guint64
 

The identifier of the attachment.

content_type const gchar*
 

The content type of the attachment.

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

Return value

Returns: TalkatuAttachment
 

The new TalkatuSimpleAttachment.

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