2 * AT-SPI - Assistive Technology Service Provider Interface
3 * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
5 * Copyright 2001 Sun Microsystems Inc.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
24 * createAccessibleEventListener:
25 * @callback : an #AccessibleEventListenerCB callback function, or NULL.
27 * Create a new #AccessibleEventListener with a specified (in-process) callback function.
29 * Returns: a pointer to a newly-created #AccessibleEventListener.
32 AccessibleEventListener *
33 createAccessibleEventListener (AccessibleEventListenerCB callback)
35 AccessibleEventListener *listener = spi_event_listener_new ();
38 spi_event_listener_add_callback (listener, callback);
44 * AccessibleEventListener_addCallback:
45 * @listener: the #AccessibleEventListener instance to modify.
46 * @callback: an #AccessibleEventListenerCB function pointer.
48 * Add an in-process callback function to an existing AccessibleEventListener.
49 * Note that the callback function must live in the same address
50 * space as the AccessibleEventListener implementation code, thus one should not
51 * use this function to attach callbacks to a 'remote' event listener
52 * (that is, one that was not created by a client call to
53 * createAccessibleEventListener ();
55 * Returns: #TRUE if successful, otherwise #FALSE.
59 AccessibleEventListener_addCallback (AccessibleEventListener *listener,
60 AccessibleEventListenerCB callback)
62 spi_event_listener_add_callback (listener, callback);
67 * AccessibleEventListener_removeCallback:
68 * @listener: the #AccessibleEventListener instance to modify.
69 * @callback: an #AccessibleEventListenerCB function pointer.
71 * Remove an in-process callback function from an existing AccessibleEventListener.
73 * Returns: #TRUE if successful, otherwise #FALSE.
77 AccessibleEventListener_removeCallback (AccessibleEventListener *listener,
78 AccessibleEventListenerCB callback)
80 spi_event_listener_remove_callback (listener, callback);
85 * createAccessibleKeystrokeListener:
86 * @callback : an #AccessibleKeystrokeListenerCB callback function, or NULL.
88 * Create a new #AccessibleKeystrokeListener with a specified callback function.
90 * Returns: a pointer to a newly-created #AccessibleKeystrokeListener.
93 AccessibleKeystrokeListener *
94 createAccessibleKeystrokeListener (AccessibleKeystrokeListenerCB callback)
96 SpiKeystrokeListener *listener = spi_keystroke_listener_new ();
99 spi_keystroke_listener_add_callback (listener, callback);
101 return (AccessibleKeystrokeListener *)listener;
105 * AccessibleKeystrokeListener_addCallback:
106 * @listener: the #AccessibleKeystrokeListener instance to modify.
107 * @callback: an #AccessibleKeystrokeListenerCB function pointer.
109 * Add an in-process callback function to an existing #AccessibleKeystrokeListener.
111 * Returns: #TRUE if successful, otherwise #FALSE.
115 AccessibleKeystrokeListener_addCallback (AccessibleKeystrokeListener *listener,
116 AccessibleKeystrokeListenerCB callback)
118 spi_keystroke_listener_add_callback (listener, callback);
123 * AccessibleKeystrokeListener_removeCallback:
124 * @listener: the #AccessibleKeystrokeListener instance to modify.
125 * @callback: an #AccessibleKeystrokeListenerCB function pointer.
127 * Remove an in-process callback function from an existing #AccessibleKeystrokeListener.
129 * Returns: #TRUE if successful, otherwise #FALSE.
133 AccessibleKeystrokeListener_removeCallback (AccessibleKeystrokeListener *listener,
134 AccessibleKeystrokeListenerCB callback)
136 spi_keystroke_listener_remove_callback (listener, callback);