Simple Attachments

Simple Attachments — A Simple Message Attachment

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── TalkatuSimpleAttachment

Implemented Interfaces

TalkatuSimpleAttachment implements TalkatuAttachment.

Description

TalkatuSimpleAttachment is simple implementation of the TalkatuAttachment interface. This is the easiest way to create a TalkatuAttachment and attach it to a TalkatuMessage.

Functions

talkatu_simple_attachment_new ()

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

Creates a new attachment with content_type .

Parameters

id

The identifier of the attachment.

 

content_type

The content type of the attachment.

 

Returns

The new TalkatuSimpleAttachment.

[transfer full]

Types and Values

TALKATU_TYPE_SIMPLE_ATTACHMENT

#define TALKATU_TYPE_SIMPLE_ATTACHMENT (talkatu_simple_attachment_get_type())

The standard _get_type macro for TalkatuSimpleAttachment.

TalkatuSimpleAttachment

typedef struct _TalkatuSimpleAttachment TalkatuSimpleAttachment;

TalkatuSimpleAttachment is an opaque data structure and can not be used directly.