mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-08 09:04:17 +00:00
codegen: Allow ignoring enum values. Partially fixes #581729
This is needed to ignore new enum values that are added in new gstreamer core/base versions.
This commit is contained in:
parent
113959d55a
commit
49fc5b26ff
1 changed files with 2 additions and 0 deletions
|
@ -1341,6 +1341,8 @@ def write_enums(parser, overrides, prefix, fp=sys.stdout):
|
|||
continue
|
||||
if enum.typecode is None:
|
||||
for nick, value in enum.values:
|
||||
if overrides.is_ignored(value):
|
||||
continue
|
||||
fp.write(
|
||||
' PyModule_AddIntConstant(module, '
|
||||
'(char *) pyg_constant_strip_prefix("%s", strip_prefix), %s);\n'
|
||||
|
|
Loading…
Reference in a new issue