mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
codegen: Ignore functions whose return type is ignored
This makes sure that if X is an ignored type, then functions that return an object of type X (or a pointer type based on X) are also ignored. Fixes #639293
This commit is contained in:
parent
778159a685
commit
59fc7cb120
1 changed files with 2 additions and 1 deletions
|
@ -724,7 +724,8 @@ class Wrapper:
|
|||
# First, get methods from the defs files
|
||||
for func in self.parser.find_functions():
|
||||
funcname = func.c_name
|
||||
if self.overrides.is_ignored(funcname):
|
||||
if self.overrides.is_ignored(funcname) or \
|
||||
self.overrides.is_type_ignored(func.ret):
|
||||
continue
|
||||
try:
|
||||
if self.overrides.is_overriden(funcname):
|
||||
|
|
Loading…
Reference in a new issue