Function

AtspiEventListenerregister_from_callback

Declaration [src]

gboolean
atspi_event_listener_register_from_callback (
  AtspiEventListenerCB callback,
  void* user_data,
  GDestroyNotify callback_destroyed,
  const gchar* event_type,
  GError** error
)

Description [src]

Registers an AtspiEventListenerCB against an event_type.

Parameters

callback AtspiEventListenerCB
 

The AtspiEventListenerCB to be registered against an event type.

user_data void*
 

User data to be passed to the callback.

 The argument can be NULL.
 The data is owned by the caller of the function.
callback_destroyed GDestroyNotify
 

A GDestroyNotify called when the callback is destroyed.

event_type const gchar*
 

A character string indicating the type of events for which notification is requested. See #atspi_event_listener_register for a description of the format.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if successfull, otherwise FALSE.