[vlc-devel] commit: python-ctypes: fix enum names conversion (Olivier Aubert )

git version control git at videolan.org
Mon Aug 3 17:20:00 CEST 2009


vlc | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Aug  3 17:15:15 2009 +0200| [cdb7b4af27cfe67f9d0fa6285defdd36e9408788] | committer: Olivier Aubert 

python-ctypes: fix enum names conversion

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

 bindings/python-ctypes/footer.py   |    4 ++--
 bindings/python-ctypes/generate.py |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bindings/python-ctypes/footer.py b/bindings/python-ctypes/footer.py
index b336629..6c0d788 100644
--- a/bindings/python-ctypes/footer.py
+++ b/bindings/python-ctypes/footer.py
@@ -1,4 +1,4 @@
-# Footer code.
+### Start of footer.py ###
 
 class MediaEvent(ctypes.Structure):
     _fields_ = [
@@ -28,7 +28,7 @@ class EventUnion(ctypes.Union):
 
 class Event(ctypes.Structure):
     _fields_ = [
-        ('type', EventTypeT),
+        ('type', EventType),
         ('object', ctypes.c_void_p),
         ('u', EventUnion),
         ]
diff --git a/bindings/python-ctypes/generate.py b/bindings/python-ctypes/generate.py
index a5eb7ea..0bf3411 100755
--- a/bindings/python-ctypes/generate.py
+++ b/bindings/python-ctypes/generate.py
@@ -295,7 +295,7 @@ def parse_typedef(name):
                     if l:
                         values.append( (l, str(i)) )
             comment=comment.replace('@{', '').replace('@see', 'See').replace('\ingroup', '')
-            yield (typ, name, values, comment)
+            yield (typ, name.strip(), values, comment)
             comment=''
             continue
 
@@ -315,7 +315,7 @@ def parse_typedef(name):
                     if l:
                         values.append( (l, str(i)) )
             comment=comment.replace('@{', '').replace('@see', 'See').replace('\ingroup', '')
-            yield (typ, name, values, comment)
+            yield (typ, name.strip(), values, comment)
             comment=''
             continue
 




More information about the vlc-devel mailing list