mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 13:06:14 +01:00
[gifunction.h] Move GIFunctionInfoFlags to gitypes.h
This commit is contained in:
parent
c223abfa36
commit
e57e4f2868
@ -33,27 +33,6 @@ G_BEGIN_DECLS
|
|||||||
#define GI_IS_FUNCTION_INFO(info) \
|
#define GI_IS_FUNCTION_INFO(info) \
|
||||||
(g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_FUNCTION)
|
(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);
|
const gchar * g_function_info_get_symbol (GIFunctionInfo *info);
|
||||||
GIFunctionInfoFlags g_function_info_get_flags (GIFunctionInfo *info);
|
GIFunctionInfoFlags g_function_info_get_flags (GIFunctionInfo *info);
|
||||||
GIPropertyInfo * g_function_info_get_property (GIFunctionInfo *info);
|
GIPropertyInfo * g_function_info_get_property (GIFunctionInfo *info);
|
||||||
|
21
gitypes.h
21
gitypes.h
@ -413,5 +413,26 @@ typedef enum
|
|||||||
GI_VFUNC_MUST_NOT_OVERRIDE = 1 << 2
|
GI_VFUNC_MUST_NOT_OVERRIDE = 1 << 2
|
||||||
} GIVFuncInfoFlags;
|
} 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__ */
|
#endif /* __GITYPES_H__ */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user