From a12d7458110c57e183916255d701b1e0d7c070e1 Mon Sep 17 00:00:00 2001 From: Mike Gorse Date: Tue, 24 May 2011 16:24:09 -0500 Subject: 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. --- atspi/atspi-enum-types.h.template | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 atspi/atspi-enum-types.h.template (limited to 'atspi/atspi-enum-types.h.template') 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 + +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 ***/ + -- cgit v1.2.1