Function
TalkatuSimpleAttachmentnew
Declaration [src]
TalkatuAttachment*
talkatu_simple_attachment_new (
guint64 id,
const gchar* content_type
)
Parameters
id
-
Type:
guint64
The identifier of the attachment.
content_type
-
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
Type: TalkatuAttachment
The new TalkatuSimpleAttachment
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |