AtspiEventListenerCb is currently defined as (transfer
full), so the caller owns the struct and needs to free it, so it should not be const.
-remove_datum (const AtspiEvent *event, void *user_data)
+remove_datum (AtspiEvent *event, void *user_data)
{
AtspiEventListenerSimpleCB cb = user_data;
cb (event);
{
AtspiEventListenerSimpleCB cb = user_data;
cb (event);
* A function prototype for callbacks via which clients are notified of AT-SPI events.
*
**/
* A function prototype for callbacks via which clients are notified of AT-SPI events.
*
**/
-typedef void (*AtspiEventListenerCB) (const AtspiEvent *event,
+typedef void (*AtspiEventListenerCB) (AtspiEvent *event,
g_boxed_free (ATSPI_TYPE_EVENT, event);
}
g_boxed_free (ATSPI_TYPE_EVENT, event);
}