Constructor
PurpleMessagenew_outgoing
since: 3.0
Declaration [src]
PurpleMessage*
purple_message_new_outgoing (
const char* author,
const char* recipient,
const char* contents,
PurpleMessageFlags flags
)
Description [src]
Creates new outgoing message to recipient
.
You don’t need to set the #PURPLE_MESSAGE_SEND flag. If the message is not plain text be sure to call purple_message_set_content_type().
Available since: 3.0
Parameters
author
-
Type:
const char*
The author.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. recipient
-
Type:
const char*
The recipient.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. contents
-
Type:
const char*
The contents.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. flags
-
Type:
PurpleMessageFlags
The
PurpleMessageFlags
.
Return value
Type: PurpleMessage
The new PurpleMessage
instance.
The caller of the function takes ownership of the data, and is responsible for freeing it. |