Commit 2b9df1de authored by Colin Walters's avatar Colin Walters
Browse files

scanner: Add temporary workaround for GStreamer

Also document/bug link the other workarounds; just made up a
convention for ## WORKAROUND ##

See: https://bugzilla.gnome.org/show_bug.cgi?id=550616
parent e8221c2b
......@@ -350,6 +350,8 @@ different --identifier-prefix.""" % (xmlnode.attrib['name'], self._namespace.ide
else:
self._namespace.append(node, replace=True)
## WORKAROUND ##
# https://bugzilla.gnome.org/show_bug.cgi?id=550616
def _introspect_boxed_gstreamer_workaround(self, xmlnode):
node = ast.Boxed('ParamSpecMiniObject', gtype_name='GParamSpecMiniObject',
get_type='gst_param_spec_mini_object_get_type',
......
......@@ -46,8 +46,10 @@ class MainTransformer(object):
# Public API
def transform(self):
## WORKAROUND ##
# Dirty hack for now...maybe eventually we'll support the "typedef GSList FooSet"
# pattern.
# https://bugzilla.gnome.org/show_bug.cgi?id=629682
if self._namespace.name == 'Atk':
attribute = self._namespace.get('Attribute')
attributeset = self._namespace.get('AttributeSet')
......
......@@ -80,6 +80,10 @@ class Transformer(object):
def parse(self, symbols):
for symbol in symbols:
## WORKAROUND ##
# https://bugzilla.gnome.org/show_bug.cgi?id=550616
if symbol.ident in ['gst_g_error_get_type']:
continue
node = self._traverse_one(symbol)
if node:
self._append_new_node(node)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment