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 AccessibleEventListener *
12 createEventListener (AccessibleEventListenerCB callback)
14 AccessibleEventListener *listener = accessible_event_listener_new ();
17 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 AccessibleEventListener.
29 * Returns: #TRUE if successful, otherwise #FALSE.
33 EventListener_addCallback (AccessibleEventListener *listener,
34 AccessibleEventListenerCB callback)
36 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 AccessibleEventListener.
47 * Returns: #TRUE if successful, otherwise #FALSE.
51 EventListener_removeCallback (AccessibleEventListener *listener,
52 AccessibleEventListenerCB callback)
54 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);