X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=atspi%2Fatspi-event-listener.h;h=12d3c5856c3ea4542d3f8c71b179acd4f50bb326;hb=7655e875bade67f5cf3e8ab2e9776e66d9517658;hp=a64c7dda8965a4e46381057a0d9b83245a1d95c9;hpb=0ab99d28b6da6589a5522320e395b94cba50f907;p=platform%2Fupstream%2Fat-spi2-core.git diff --git a/atspi/atspi-event-listener.h b/atspi/atspi-event-listener.h index a64c7dd..12d3c58 100644 --- a/atspi/atspi-event-listener.h +++ b/atspi/atspi-event-listener.h @@ -4,6 +4,7 @@ * * Copyright 2002 Ximian, Inc. * 2002 Sun Microsystems Inc. + * Copyright 2010, 2011 Novell, Inc. * * * This library is free software; you can redistribute it and/or @@ -29,6 +30,8 @@ #include "atspi-types.h" +G_BEGIN_DECLS + GType atspi_event_get_type (void); /** @@ -39,7 +42,7 @@ GType atspi_event_get_type (void); * A function prototype for callbacks via which clients are notified of AT-SPI events. * **/ -typedef void (*AtspiEventListenerCB) (const AtspiEvent *event, +typedef void (*AtspiEventListenerCB) (AtspiEvent *event, void *user_data); /** @@ -76,6 +79,11 @@ struct _AtspiEventListenerClass GType atspi_event_listener_get_type (void); AtspiEventListener * +atspi_event_listener_new (AtspiEventListenerCB callback, + gpointer user_data, + GDestroyNotify callback_destroyed); + +AtspiEventListener * atspi_event_listener_new_simple (AtspiEventListenerSimpleCB callback, GDestroyNotify callback_destroyed); @@ -112,4 +120,7 @@ gboolean atspi_event_listener_deregister_no_data (AtspiEventListenerSimpleCB callback, const gchar *event_type, GError **error); + +G_END_DECLS + #endif /* _ATSPI_EVENT_LISTENER_H_ */