summaryrefslogtreecommitdiff
path: root/atspi/atspi-event-listener.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-12-06 20:44:48 -0600
committerFederico Mena Quintero <federico@gnome.org>2022-12-06 20:50:13 -0600
commitb10fcf21b1ef49dd3d6297ac657434ece3b23578 (patch)
treed560f8449f3ae75fea343887dcb6d5f4df7b434c /atspi/atspi-event-listener.h
parentbf4d71a38b970699f63ce7b701e9bf4c9d31f717 (diff)
downloadat-spi2-core-b10fcf21b1ef49dd3d6297ac657434ece3b23578.tar.gz
Reformat all the *.[ch] files with clang-format
I ran this on each directory with C files: clang-format -i *.[ch] "-i" is the in-place option. I also adjusted the order of #includes for some files which failed to build after that: Clang-format reorders blocks of #include directives alphabetically, but they can be grouped and separated by blank lines. If there is a blank line between blocks, like #include "zork.h" #include "bar.h" #include "foo.h" then it will not put zork.h after the other two. The last two header files will be sorted alphabetically. We can adjust the formatting of chunks of code by hand with comments like these: /* clang-format off */ this code { is, formatted, by, hand; } /* clang-format on */ See https://clang.llvm.org/docs/ClangFormat.html for the general manual and https://clang.llvm.org/docs/ClangFormatStyleOptions.html for the style options and the comments described above.
Diffstat (limited to 'atspi/atspi-event-listener.h')
-rw-r--r--atspi/atspi-event-listener.h88
1 files changed, 44 insertions, 44 deletions
diff --git a/atspi/atspi-event-listener.h b/atspi/atspi-event-listener.h
index 687e1e78..b294525e 100644
--- a/atspi/atspi-event-listener.h
+++ b/atspi/atspi-event-listener.h
@@ -5,7 +5,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
* modify it under the terms of the GNU Lesser General Public
@@ -40,26 +40,26 @@ GType atspi_event_get_type (void);
* @user_data: User data which is passed to the callback each time a notification takes place.
*
* A function prototype for callbacks via which clients are notified of AT-SPI events.
- *
+ *
**/
-typedef void (*AtspiEventListenerCB) (AtspiEvent *event,
- void *user_data);
+typedef void (*AtspiEventListenerCB) (AtspiEvent *event,
+ void *user_data);
/**
* AtspiEventListenerSimpleCB:
* @event: (transfer full): The event for which notification is sent.
*
* Like #AtspiEventlistenerCB, but with no user_data.
- *
+ *
**/
-typedef void (*AtspiEventListenerSimpleCB) (const AtspiEvent *event);
+typedef void (*AtspiEventListenerSimpleCB) (const AtspiEvent *event);
-#define ATSPI_TYPE_EVENT_LISTENER (atspi_event_listener_get_type ())
-#define ATSPI_EVENT_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_EVENT_LISTENER, AtspiEventListener))
-#define ATSPI_EVENT_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATSPI_TYPE_EVENT_LISTENER, AtspiEventListenerClass))
-#define ATSPI_IS_EVENT_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATSPI_TYPE_EVENT_LISTENER))
-#define ATSPI_IS_EVENT_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATSPI_TYPE_EVENT_LISTENER))
-#define ATSPI_EVENT_LISTENER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATSPI_TYPE_EVENT_LISTENER, AtspiEventListenerClass))
+#define ATSPI_TYPE_EVENT_LISTENER (atspi_event_listener_get_type ())
+#define ATSPI_EVENT_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_EVENT_LISTENER, AtspiEventListener))
+#define ATSPI_EVENT_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATSPI_TYPE_EVENT_LISTENER, AtspiEventListenerClass))
+#define ATSPI_IS_EVENT_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATSPI_TYPE_EVENT_LISTENER))
+#define ATSPI_IS_EVENT_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATSPI_TYPE_EVENT_LISTENER))
+#define ATSPI_EVENT_LISTENER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATSPI_TYPE_EVENT_LISTENER, AtspiEventListenerClass))
typedef struct _AtspiEventListener AtspiEventListener;
struct _AtspiEventListener
@@ -80,8 +80,8 @@ GType atspi_event_listener_get_type (void);
AtspiEventListener *
atspi_event_listener_new (AtspiEventListenerCB callback,
- gpointer user_data,
- GDestroyNotify callback_destroyed);
+ gpointer user_data,
+ GDestroyNotify callback_destroyed);
AtspiEventListener *
atspi_event_listener_new_simple (AtspiEventListenerSimpleCB callback,
@@ -89,68 +89,68 @@ atspi_event_listener_new_simple (AtspiEventListenerSimpleCB callback,
gboolean
atspi_event_listener_register (AtspiEventListener *listener,
- const gchar *event_type,
- GError **error);
+ const gchar *event_type,
+ GError **error);
gboolean
atspi_event_listener_register_full (AtspiEventListener *listener,
- const gchar *event_type,
- GArray *properties,
- GError **error);
+ const gchar *event_type,
+ GArray *properties,
+ GError **error);
gboolean
atspi_event_listener_register_with_app (AtspiEventListener *listener,
- const gchar *event_type,
+ const gchar *event_type,
GArray *properties,
AtspiAccessible *app,
- GError **error);
+ GError **error);
gboolean
atspi_event_listener_register_from_callback (AtspiEventListenerCB callback,
- void *user_data,
- GDestroyNotify callback_destroyed,
- const gchar *event_type,
- GError **error);
+ void *user_data,
+ GDestroyNotify callback_destroyed,
+ const gchar *event_type,
+ GError **error);
gboolean
atspi_event_listener_register_from_callback_full (AtspiEventListenerCB callback,
- void *user_data,
- GDestroyNotify callback_destroyed,
- const gchar *event_type,
+ void *user_data,
+ GDestroyNotify callback_destroyed,
+ const gchar *event_type,
GArray *properties,
- GError **error);
+ GError **error);
gboolean
atspi_event_listener_register_from_callback_with_app (AtspiEventListenerCB callback,
- void *user_data,
- GDestroyNotify callback_destroyed,
- const gchar *event_type,
+ void *user_data,
+ GDestroyNotify callback_destroyed,
+ const gchar *event_type,
GArray *properties,
AtspiAccessible *app,
- GError **error);
+ GError **error);
gboolean
atspi_event_listener_register_no_data (AtspiEventListenerSimpleCB callback,
- GDestroyNotify callback_destroyed,
- const gchar *event_type,
- GError **error);
+ GDestroyNotify callback_destroyed,
+ const gchar *event_type,
+ GError **error);
gboolean
atspi_event_listener_deregister (AtspiEventListener *listener,
- const gchar *event_type,
- GError **error);
+ const gchar *event_type,
+ GError **error);
gboolean
atspi_event_listener_deregister_from_callback (AtspiEventListenerCB callback,
- void *user_data,
- const gchar *event_type,
- GError **error);
+ void *user_data,
+ const gchar *event_type,
+ GError **error);
gboolean
atspi_event_listener_deregister_no_data (AtspiEventListenerSimpleCB callback,
- const gchar *event_type,
- GError **error);
+ const gchar *event_type,
+ GError **error);
G_END_DECLS
-#endif /* _ATSPI_EVENT_LISTENER_H_ */
+#endif /* _ATSPI_EVENT_LISTENER_H_ */