Constructor
PurpleNotificationnew
unstable since: 3.0
Declaration [src]
PurpleNotification*
purple_notification_new (
const char* id,
const char* title
)
Description [src]
Creates a new notification with title
.
If id
is NULL
it will be set to a random identifier. The id
is used to
tell protocols that the notification was read/dismissed/whatever. So if you
set the id for that purpose, but sure to set PurpleNotification:account
as well.
Available since: 3.0
Parameters
id
-
Type:
const char*
An id for the notification.
The argument can be NULL
.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. title
-
Type:
const char*
The title for the notification.
The argument can be NULL
.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
Return value
Type: PurpleNotification
The new notification.
The caller of the function takes ownership of the data, and is responsible for freeing it. |