Method

PurpleConversationcreate_message

unstable since: 3.0

Declaration [src]

PurpleMessage*
purple_conversation_create_message (
  PurpleConversation* conversation,
  const char* contents
)

Description [src]

Creates a new message with the author set to the account that the conversation belongs to.

Available since: 3.0

Parameters

contents

Type: const char*

The contents of the message.

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

Return value

Type: PurpleMessage

The new message or NULL if the conversation doesn’t have an account.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.