fe4aad067557c3bd1d53778e4e6b696ab762413c
[platform/upstream/at-spi2-atk.git] / atk-adaptor / event.h
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4  *
5  * Copyright 2001, 2002 Sun Microsystems Inc.,
6  * Copyright 2001, 2002 Ximian, Inc.
7  * Copyright 2008, 2009 Codethink Ltd.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the
21  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22  * Boston, MA 02110-1301, USA.
23  */
24
25 #ifndef EVENT_H
26 #define EVENT_H
27
28 void spi_atk_register_event_listeners (void);
29 void spi_atk_deregister_event_listeners (void);
30 void spi_atk_tidy_windows (void);
31
32 gboolean spi_event_is_subtype (gchar **needle, gchar **haystack);
33
34 extern GMainContext *spi_context;
35 guint spi_idle_add(GSourceFunc    function, gpointer       data);
36 guint spi_timeout_add_seconds (gint interval, GSourceFunc function, gpointer    data);
37 guint spi_timeout_add_full (gint priority, guint interval, GSourceFunc function,
38                             gpointer data, GDestroyNotify notify);
39 #endif /* EVENT_H */