summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@src.gnome.org>2008-11-10 23:58:49 +0000
committerOwen Taylor <otaylor@src.gnome.org>2008-11-10 23:58:49 +0000
commiteceeb044de0a3dd137fa15da7027ce706504bc94 (patch)
tree6585b29a4838c8456799bdf45eacc3f66def26c6 /giscanner/girwriter.py
parent5229e674abb42c35c3ae5a548ce3a6e66215c1aa (diff)
downloadgobject-introspection-eceeb044de0a3dd137fa15da7027ce706504bc94.tar.gz
Bug 560248 – "disguised structures"
Certain types like GIConv and GdkAtom are pointers internally but don't look like pointers when referenced. They have the form. typedef struct _X *X; Parse these as structures/records but mark them in the gir with a 'disguised' attribute so that we know that they need special handling. In the typelib treat them like any other structure. svn path=/trunk/; revision=872
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index 1861d0dd..030ea829 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -309,6 +309,8 @@ class GIRWriter(XMLWriter):
def _write_record(self, record):
attrs = [('name', record.name),
('c:type', record.symbol)]
+ if record.disguised:
+ attrs.append(('disguised', '1'))
self._append_deprecated(record, attrs)
if isinstance(record, GLibBoxed):
attrs.extend(self._boxed_attrs(record))