[vlc-commits] python: fix callback blacklisting

Olivier Aubert git at videolan.org
Sun Oct 27 20:13:42 CET 2019


vlc/python | branch: master | Olivier Aubert <contact at olivieraubert.net> | Sat Aug  3 20:12:43 2019 +0200| [54a8e3f0b6867d1e9a20c318ac14fb1ca1b672e0] | committer: Olivier Aubert

python: fix callback blacklisting

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=54a8e3f0b6867d1e9a20c318ac14fb1ca1b672e0
---

 generator/generate.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/generator/generate.py b/generator/generate.py
index 739415a..2551034 100755
--- a/generator/generate.py
+++ b/generator/generate.py
@@ -104,6 +104,8 @@ _blacklist = {
     'libvlc_printerr': '',
     # Waiting for some structure wrapping
     'libvlc_dialog_set_callbacks': '',
+    # Its signature is a mess
+    'libvlc_video_direct3d_set_resize_cb': '',
 }
 
 # Set of functions that return a string that the caller is
@@ -504,6 +506,9 @@ class Parser(object):
         @return: yield a Func instance for each callback signature, unless blacklisted.
         """
         for type_, name, pars, docs, line in self.parse_groups(callback_type_re.match, callback_re.match, ');'):
+            if name in _blacklist:
+                _blacklist[name] = type_
+                continue
 
             pars = [self.parse_param(p) for p in paramlist_re.split(pars)]
 



More information about the vlc-commits mailing list