Function notify_notification_add_action
Adds an action to a notification. When the action is invoked, the specified callback function will be called, along with the value passed to user_data.
extern(C) void notify_notification_add_action
(
NotifyNotification* notification,
const(char*) action,
const(char*) label,
void function(NotifyNotification*, char*, void*) callback,
void* user_data,
extern(C) void function(void*) free_func
);
Parameters
| Name | Description |
|---|---|
| notification | The notification. |
| action | The action ID. |
| label | The human-readable action label. |
| callback | The action's callback function. |
| user_data | Optional custom data to pass to callback . |
| free_func | An optional function to free user_data when the notification is destroyed. |