summaryrefslogtreecommitdiff
path: root/girepository/gitypes.h
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-06-06 19:53:41 -0300
committerJohan Dahlin <johan@gnome.org>2010-06-06 19:55:00 -0300
commit82088625c1a5929ab5fe30bbf8ff455fff2b8098 (patch)
treef1bd6b9aed7142cb0cab4fa387fcf187b9318a6e /girepository/gitypes.h
parentfa25cf7d285507bfa9e5c4ca05caa3748bfa2018 (diff)
downloadgobject-introspection-82088625c1a5929ab5fe30bbf8ff455fff2b8098.tar.gz
[gifunction.h] Move GIFunctionInfoFlags to gitypes.h
Diffstat (limited to 'girepository/gitypes.h')
-rw-r--r--girepository/gitypes.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/girepository/gitypes.h b/girepository/gitypes.h
index b6986b47..10a412d7 100644
--- a/girepository/gitypes.h
+++ b/girepository/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__ */