diff options
author | Johan Dahlin <johan@gnome.org> | 2008-03-25 21:58:43 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-03-25 21:58:43 +0000 |
commit | 55e0a1d2b44aba6dd53d33d940d816b0f363939a (patch) | |
tree | 35088a4e76e50c5174dc1b16f921248846e76929 /giscanner/__init__.py | |
parent | a310fd859d42006253d8541f366ca458bdb09493 (diff) | |
download | gobject-introspection-55e0a1d2b44aba6dd53d33d940d816b0f363939a.tar.gz |
Add constants and wrap a few more SymbolType fields
2008-03-25 Johan Dahlin <johan@gnome.org>
* giscanner/__init__.py:
* giscanner/giscannermodule.c:
* giscanner/sourcescanner.c:
* giscanner/sourcescanner.h:
Add constants and wrap a few more SymbolType fields
svn path=/trunk/; revision=166
Diffstat (limited to 'giscanner/__init__.py')
-rw-r--r-- | giscanner/__init__.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/giscanner/__init__.py b/giscanner/__init__.py index aff773a7..448577ee 100644 --- a/giscanner/__init__.py +++ b/giscanner/__init__.py @@ -1 +1,43 @@ from _giscanner import * + +(CSYMBOL_TYPE_INVALID, + CSYMBOL_TYPE_CONST, + CSYMBOL_TYPE_OBJECT, + CSYMBOL_TYPE_FUNCTION, + CSYMBOL_TYPE_STRUCT, + CSYMBOL_TYPE_UNION, + CSYMBOL_TYPE_ENUM, + CSYMBOL_TYPE_TYPEDEF) = range(8) + +(CTYPE_INVALID, + CTYPE_VOID, + CTYPE_BASIC_TYPE, + CTYPE_TYPEDEF, + CTYPE_STRUCT, + CTYPE_UNION, + CTYPE_ENUM, + CTYPE_POINTER, + CTYPE_ARRAY, + CTYPE_FUNCTION) = range(10) + +STORAGE_CLASS_NONE = 0 +STORAGE_CLASS_TYPEDEF = 1 << 1 +STORAGE_CLASS_EXTERN = 1 << 2 +STORAGE_CLASS_STATIC = 1 << 3 +STORAGE_CLASS_AUTO = 1 << 4 +STORAGE_CLASS_REGISTER = 1 << 5 + +TYPE_QUALIFIER_NONE = 0 +TYPE_QUALIFIER_CONST = 1 << 1 +TYPE_QUALIFIER_RESTRICT = 1 << 2 +TYPE_QUALIFIER_VOLATILE = 1 << 3 + +FUNCTION_NONE = 0 +FUNCTION_INLINE = 1 << 1 + +UNARY_ADDRESS_OF +UNARY_POINTER_INDIRECTION +UNARY_PLUS +UNARY_MINUS +UNARY_BITWISE_COMPLEMENT +UNARY_LOGICAL_NEGATION |