diff options
author | Colin Walters <walters@verbum.org> | 2009-02-20 17:34:20 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-02-25 17:31:49 -0500 |
commit | 251de52b083d3e0e42f25cb164a46865c2c2b9a9 (patch) | |
tree | 99db442fd1bb299466f5d277561becfca4b220ee /giscanner/ast.py | |
parent | 0b9dda0e725446882dca84b6a64688c8f0e5a4e3 (diff) | |
download | gobject-introspection-251de52b083d3e0e42f25cb164a46865c2c2b9a9.tar.gz |
Bug 572434 - Associate interfaces with their C structures
Similar to GObject class structs, we pair up GInterfaces with
their C structures.
Also, move some GLib-specific things into glibast.py, and make
the naming more generic.
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index ff65312c..e708258c 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -1,6 +1,7 @@ # -*- Mode: Python -*- # GObject-Introspection - a framework for introspecting GObject libraries # Copyright (C) 2008 Johan Dahlin +# Copyright (C) 2008, 2009 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -366,11 +367,7 @@ class Record(Node): self.symbol = symbol self.disguised = disguised self.doc = None - self.constructors = [] self.methods = [] - # If true, this record defines the FooClass C structure - # for some Foo GObject - self.is_gobject_struct_for = False # BW compat, remove Struct = Record @@ -410,7 +407,7 @@ class Class(Node): Node.__init__(self, name) self.ctype = name self.parent = parent - self.class_struct = None + self.glib_type_struct = None self.is_abstract = is_abstract self.methods = [] self.static_methods = [] @@ -432,6 +429,7 @@ class Interface(Node): Node.__init__(self, name) self.parent = parent self.methods = [] + self.glib_type_struct = None self.properties = [] self.fields = [] self.prerequisites = [] |