Make AtspiEventListenerCb not call for a const datum
[platform/upstream/at-spi2-core.git] / atspi / atspi-event-listener.h
index a64c7dd..12d3c58 100644 (file)
@@ -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_ */