summaryrefslogtreecommitdiff
path: root/atspi/atspi-types.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-types.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-types.h')
-rw-r--r--atspi/atspi-types.h45
1 files changed, 23 insertions, 22 deletions
diff --git a/atspi/atspi-types.h b/atspi/atspi-types.h
index 8eca6dd5..b6c28b49 100644
--- a/atspi/atspi-types.h
+++ b/atspi/atspi-types.h
@@ -4,7 +4,7 @@
*
* Copyright 2002 Ximian, Inc.
* 2002 Sun Microsystems Inc.
- *
+ *
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -66,7 +66,7 @@ struct _AtspiDeviceEvent
gushort hw_code;
gushort modifiers;
guint timestamp;
- gchar * event_string;
+ gchar *event_string;
gboolean is_text;
};
@@ -89,35 +89,35 @@ struct _AtspiKeyDefinition
/**
* ATSPI_TYPE_KEY_DEFINITION:
- *
+ *
* The #GType for a boxed type holding a #AtspiKeyDefinition.
*/
-#define ATSPI_TYPE_KEY_DEFINITION (atspi_key_definition_get_type ())
+#define ATSPI_TYPE_KEY_DEFINITION (atspi_key_definition_get_type ())
typedef struct _AtspiEvent AtspiEvent;
struct _AtspiEvent
{
- gchar *type;
- AtspiAccessible *source;
- gint detail1;
- gint detail2;
+ gchar *type;
+ AtspiAccessible *source;
+ gint detail1;
+ gint detail2;
GValue any_data;
AtspiAccessible *sender;
};
/**
* ATSPI_TYPE_DEVICE_EVENT:
- *
+ *
* The #GType for a boxed type holding a #AtspiDeviceEvent.
*/
-#define ATSPI_TYPE_DEVICE_EVENT (atspi_device_event_get_type ())
+#define ATSPI_TYPE_DEVICE_EVENT (atspi_device_event_get_type ())
/**
* ATSPI_TYPE_EVENT:
- *
+ *
* The #GType for a boxed type holding a #AtspiEvent.
*/
-#define ATSPI_TYPE_EVENT (atspi_event_get_type ())
+#define ATSPI_TYPE_EVENT (atspi_event_get_type ())
typedef void AtspiKeystrokeListener;
@@ -134,22 +134,22 @@ typedef struct _AtspiKeySet
{
guint *keysyms;
gushort *keycodes;
- gchar **keystrings;
- gshort len;
+ gchar **keystrings;
+ gshort len;
} AtspiKeySet;
/**
* AtspiKeyListenerSyncType:
*
* @ATSPI_KEYLISTENER_NOSYNC: Events may be delivered asynchronously,
- * which means in some cases they may already have been delivered to the
- * application before the AT client receives the notification.
- * @ATSPI_KEYLISTENER_SYNCHRONOUS: Events are delivered synchronously, before the
- * currently focussed application sees them.
+ * which means in some cases they may already have been delivered to the
+ * application before the AT client receives the notification.
+ * @ATSPI_KEYLISTENER_SYNCHRONOUS: Events are delivered synchronously, before the
+ * currently focussed application sees them.
* @ATSPI_KEYLISTENER_CANCONSUME: Events may be consumed by the AT client. Presumes and
* requires #ATSPI_KEYLISTENER_SYNCHRONOUS, incompatible with #ATSPI_KEYLISTENER_NOSYNC.
* @ATSPI_KEYLISTENER_ALL_WINDOWS: Events are received not from the application toolkit layer, but
- * from the device driver or windowing system subsystem; such notifications are 'global' in the
+ * from the device driver or windowing system subsystem; such notifications are 'global' in the
* sense that they are not broken or defeated by applications that participate poorly
* in the accessibility APIs, or not at all; however because of the intrusive nature of
* such snooping, it can have side-effects on certain older platforms. If unconditional
@@ -161,13 +161,14 @@ typedef struct _AtspiKeySet
* together, observing the compatibility limitations specified in the description of
* each value. For instance, #ATSPI_KEYLISTENER_ALL_WINDOWS | #ATSPI_KEYLISTENER_CANCONSUME is
* a commonly used combination which gives the AT complete control over the delivery of matching
- * events. However, such filters should be used sparingly as they may have a negative impact on
+ * events. However, such filters should be used sparingly as they may have a negative impact on
* system performance.
**/
-typedef enum {
+typedef enum
+{
ATSPI_KEYLISTENER_NOSYNC = 0,
ATSPI_KEYLISTENER_SYNCHRONOUS = 1 << 0,
ATSPI_KEYLISTENER_CANCONSUME = 1 << 1,
ATSPI_KEYLISTENER_ALL_WINDOWS = 1 << 2
} AtspiKeyListenerSyncType;
-#endif /* _ATSPI_TYPES_H_ */
+#endif /* _ATSPI_TYPES_H_ */