diff options
author | Mike Gorse <mgorse@novell.com> | 2011-05-24 16:24:09 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@novell.com> | 2011-05-24 16:24:09 -0500 |
commit | a12d7458110c57e183916255d701b1e0d7c070e1 (patch) | |
tree | baff102f3ef5f6ee810a358df5fa8e7de8c07817 /atspi/atspi-enum-types.h.template | |
parent | 0c73fcca6252a95beea2fcf6d5ea39c0e5e16b6f (diff) | |
download | at-spi2-core-a12d7458110c57e183916255d701b1e0d7c070e1.tar.gz |
Clean up enums
Use glib-enums to generate GTypes for enums, and modify enum definitions so
that they will be marked as bitflags where appropriate. This helps with
introspection and allows functions that take flags to be prototyped as such
rather than being marked as taking a gint.
Diffstat (limited to 'atspi/atspi-enum-types.h.template')
-rw-r--r-- | atspi/atspi-enum-types.h.template | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/atspi/atspi-enum-types.h.template b/atspi/atspi-enum-types.h.template new file mode 100644 index 00000000..bd297b5c --- /dev/null +++ b/atspi/atspi-enum-types.h.template @@ -0,0 +1,27 @@ +/*** BEGIN file-header ***/ +#ifndef __ATSPI_ENUM_TYPES_H__ +#define __ATSPI_ENUM_TYPES_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +/*** END file-header ***/ + +/*** BEGIN file-production ***/ +/* Enumerations from "@filename@" */ + +/*** END file-production ***/ + +/*** BEGIN enumeration-production ***/ +#define ATSPI_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) +GType @enum_name@_get_type (void) G_GNUC_CONST; + +/*** END enumeration-production ***/ + +/*** BEGIN file-tail ***/ +G_END_DECLS + +#endif /* __ATSPI_ENUM_TYPES_H__ */ +/*** END file-tail ***/ + |