diff --git a/gifunctioninfo.h b/gifunctioninfo.h index 9c47bd16a..a07b60f74 100644 --- a/gifunctioninfo.h +++ b/gifunctioninfo.h @@ -33,27 +33,6 @@ G_BEGIN_DECLS #define GI_IS_FUNCTION_INFO(info) \ (g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_FUNCTION) -/** - * GIFunctionInfoFlags: - * @GI_FUNCTION_IS_METHOD: is a method. - * @GI_FUNCTION_IS_CONSTRUCTOR: is a constructor. - * @GI_FUNCTION_IS_GETTER: is a getter of a #GIPropertyInfo. - * @GI_FUNCTION_IS_SETTER: is a setter of a #GIPropertyInfo. - * @GI_FUNCTION_WRAPS_VFUNC: represents a virtual function. - * @GI_FUNCTION_THROWS: the function may throw an error. - * - * Flags for a #GIFunctionInfo struct. - */ -typedef enum -{ - GI_FUNCTION_IS_METHOD = 1 << 0, - GI_FUNCTION_IS_CONSTRUCTOR = 1 << 1, - GI_FUNCTION_IS_GETTER = 1 << 2, - GI_FUNCTION_IS_SETTER = 1 << 3, - GI_FUNCTION_WRAPS_VFUNC = 1 << 4, - GI_FUNCTION_THROWS = 1 << 5 -} GIFunctionInfoFlags; - const gchar * g_function_info_get_symbol (GIFunctionInfo *info); GIFunctionInfoFlags g_function_info_get_flags (GIFunctionInfo *info); GIPropertyInfo * g_function_info_get_property (GIFunctionInfo *info); diff --git a/gitypes.h b/gitypes.h index b6986b47b..10a412d75 100644 --- a/gitypes.h +++ b/gitypes.h @@ -413,5 +413,26 @@ typedef enum GI_VFUNC_MUST_NOT_OVERRIDE = 1 << 2 } GIVFuncInfoFlags; +/** + * GIFunctionInfoFlags: + * @GI_FUNCTION_IS_METHOD: is a method. + * @GI_FUNCTION_IS_CONSTRUCTOR: is a constructor. + * @GI_FUNCTION_IS_GETTER: is a getter of a #GIPropertyInfo. + * @GI_FUNCTION_IS_SETTER: is a setter of a #GIPropertyInfo. + * @GI_FUNCTION_WRAPS_VFUNC: represents a virtual function. + * @GI_FUNCTION_THROWS: the function may throw an error. + * + * Flags for a #GIFunctionInfo struct. + */ +typedef enum +{ + GI_FUNCTION_IS_METHOD = 1 << 0, + GI_FUNCTION_IS_CONSTRUCTOR = 1 << 1, + GI_FUNCTION_IS_GETTER = 1 << 2, + GI_FUNCTION_IS_SETTER = 1 << 3, + GI_FUNCTION_WRAPS_VFUNC = 1 << 4, + GI_FUNCTION_THROWS = 1 << 5 +} GIFunctionInfoFlags; + #endif /* __GITYPES_H__ */