* cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
[platform/core/uifw/at-spi2-atk.git] / cspi / cspi-lowlevel.h
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4  *
5  * Copyright 2001 Sun Microsystems Inc.
6  *
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.
11  *
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.
16  *
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.
21  */
22
23 #ifndef _SPI_LOWLEVEL_H_
24 #define _SPI_LOWLEVEL_H_
25
26 /*
27  * Private internal - details of the lowlevel at-spi
28  * implementation abstraction
29  *
30  * These methods are implemented in cspi/bonobo/
31  */
32
33 #include "cspi/spi-private.h"
34
35 /* Misc CORBA / bonobo bits */
36
37 SPIBoolean   cspi_check_ev           (const char *error_string);
38 void         cspi_dup_ref            (CORBA_Object object);
39 void         cspi_release_unref      (CORBA_Object object);
40 char        *cspi_exception_get_text (void);
41 CORBA_Object cspi_init               (void);
42 void         cspi_main               (void);
43 void         cspi_main_quit          (void);
44
45 /* Listener bits */
46
47 gpointer     cspi_event_listener_new           (void);
48 void         cspi_event_listener_unref         (AccessibleEventListener      *listener);
49 CORBA_Object cspi_event_listener_get_corba     (AccessibleEventListener      *listener);
50 void         cspi_event_listener_add_cb        (AccessibleEventListener      *listener,
51                                                 AccessibleEventListenerCB     callback,
52                                                 void                         *user_data);
53 void         cspi_event_listener_remove_cb     (AccessibleEventListener      *listener,
54                                                 AccessibleEventListenerCB     callback);
55
56 gpointer     cspi_keystroke_listener_new       (void);
57 void         cspi_keystroke_listener_unref     (AccessibleKeystrokeListener  *listener);
58 CORBA_Object cspi_keystroke_listener_get_corba (AccessibleKeystrokeListener  *listener);
59 void         cspi_keystroke_listener_add_cb    (AccessibleKeystrokeListener  *listener,
60                                                 AccessibleKeystrokeListenerCB callback,
61                                                 void                         *user_data);
62 void         cspi_keystroke_listener_remove_cb (AccessibleKeystrokeListener  *listener,
63                                                 AccessibleKeystrokeListenerCB callback);
64
65 #endif /* _SPI_LOWLEVEL_H_ */