diff options
author | Owen Taylor <otaylor@src.gnome.org> | 2008-11-10 23:58:49 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2008-11-10 23:58:49 +0000 |
commit | eceeb044de0a3dd137fa15da7027ce706504bc94 (patch) | |
tree | 6585b29a4838c8456799bdf45eacc3f66def26c6 /giscanner/girwriter.py | |
parent | 5229e674abb42c35c3ae5a548ce3a6e66215c1aa (diff) | |
download | gobject-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.py | 2 |
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)) |