Constructor
PurpleMessagenew
unstable since: 3.0
Declaration [src]
PurpleMessage*
purple_message_new (
PurpleContactInfo* author,
const char* contents
)
Parameters
author
-
Type:
PurpleContactInfo
The author.
The data is owned by the caller of the function. contents
-
Type:
const char*
The contents of the message.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
Return value
Type: PurpleMessage
The new message.
The caller of the function takes ownership of the data, and is responsible for freeing it. |