]> git.sesse.net Git - vlc/commitdiff
python-ctypes: fix enum names conversion
authorOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Mon, 3 Aug 2009 15:15:15 +0000 (17:15 +0200)
committerOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Mon, 3 Aug 2009 15:19:56 +0000 (17:19 +0200)
bindings/python-ctypes/footer.py
bindings/python-ctypes/generate.py

index b336629b70e1c19cc2bcfba632004fffb2dd5a5f..6c0d78815cefccd1e157404d55f806b4dc6c3ee2 100644 (file)
@@ -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),
         ]
index a5eb7ea3a499b297ef16328646710d7d79de0d6b..0bf3411b9433c6c0b013e6cd3cd0b81565e8a8c2 100755 (executable)
@@ -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