4 * @callback : an #AccessibleEventListenerCB callback function, or NULL.
6 * Create a new #AccessibleEventListener with a specified callback function.
8 * Returns: a pointer to a newly-created #AccessibleEventListener.
11 SpiAccessibleEventListener *
12 createEventListener (SpiAccessibleEventListenerCB callback)
14 SpiAccessibleEventListener *listener = spi_accessible_event_listener_new ();
17 spi_accessible_event_listener_add_callback (listener, callback);
23 * EventListener_addCallback:
24 * @listener: the #AccessibleEventListener instance to modify.
25 * @callback: an #AccessibleEventListenerCB function pointer.
27 * Add an in-process callback function to an existing SpiAccessibleEventListener.
29 * Returns: #TRUE if successful, otherwise #FALSE.
33 EventListener_addCallback (SpiAccessibleEventListener *listener,
34 SpiAccessibleEventListenerCB callback)
36 spi_accessible_event_listener_add_callback (listener, callback);
41 * EventListener_removeCallback:
42 * @listener: the #AccessibleEventListener instance to modify.
43 * @callback: an #AccessibleEventListenerCB function pointer.
45 * Remove an in-process callback function from an existing SpiAccessibleEventListener.
47 * Returns: #TRUE if successful, otherwise #FALSE.
51 EventListener_removeCallback (SpiAccessibleEventListener *listener,
52 SpiAccessibleEventListenerCB callback)
54 spi_accessible_event_listener_remove_callback (listener, callback);
59 * createKeystrokeListener:
60 * @callback : an #KeystrokeListenerCB callback function, or NULL.
62 * Create a new #KeystrokeListener with a specified callback function.
64 * Returns: a pointer to a newly-created #KeystrokeListener.
68 createKeystrokeListener (KeystrokeListenerCB callback)
70 KeystrokeListener *listener = keystroke_listener_new ();
73 keystroke_listener_add_callback (listener, callback);
79 * KeystrokeListener_addCallback:
80 * @listener: the #KeystrokeListener instance to modify.
81 * @callback: an #KeystrokeListenerCB function pointer.
83 * Add an in-process callback function to an existing #KeystrokeListener.
85 * Returns: #TRUE if successful, otherwise #FALSE.
89 KeystrokeListener_addCallback (KeystrokeListener *listener,
90 KeystrokeListenerCB callback)
92 keystroke_listener_add_callback (listener, callback);
97 * KeystrokeListener_removeCallback:
98 * @listener: the #KeystrokeListener instance to modify.
99 * @callback: an #KeystrokeListenerCB function pointer.
101 * Remove an in-process callback function from an existing KeystrokeListener.
103 * Returns: #TRUE if successful, otherwise #FALSE.
107 KeystrokeListener_removeCallback (KeystrokeListener *listener,
108 KeystrokeListenerCB callback)
110 keystroke_listener_remove_callback (listener, callback);