Commit cdb7b4af authored by Olivier Aubert's avatar Olivier Aubert

python-ctypes: fix enum names conversion

parent a3bcbaaf
# Footer code. ### Start of footer.py ###
class MediaEvent(ctypes.Structure): class MediaEvent(ctypes.Structure):
_fields_ = [ _fields_ = [
...@@ -28,7 +28,7 @@ class EventUnion(ctypes.Union): ...@@ -28,7 +28,7 @@ class EventUnion(ctypes.Union):
class Event(ctypes.Structure): class Event(ctypes.Structure):
_fields_ = [ _fields_ = [
('type', EventTypeT), ('type', EventType),
('object', ctypes.c_void_p), ('object', ctypes.c_void_p),
('u', EventUnion), ('u', EventUnion),
] ]
......
...@@ -295,7 +295,7 @@ def parse_typedef(name): ...@@ -295,7 +295,7 @@ def parse_typedef(name):
if l: if l:
values.append( (l, str(i)) ) values.append( (l, str(i)) )
comment=comment.replace('@{', '').replace('@see', 'See').replace('\ingroup', '') comment=comment.replace('@{', '').replace('@see', 'See').replace('\ingroup', '')
yield (typ, name, values, comment) yield (typ, name.strip(), values, comment)
comment='' comment=''
continue continue
...@@ -315,7 +315,7 @@ def parse_typedef(name): ...@@ -315,7 +315,7 @@ def parse_typedef(name):
if l: if l:
values.append( (l, str(i)) ) values.append( (l, str(i)) )
comment=comment.replace('@{', '').replace('@see', 'See').replace('\ingroup', '') comment=comment.replace('@{', '').replace('@see', 'See').replace('\ingroup', '')
yield (typ, name, values, comment) yield (typ, name.strip(), values, comment)
comment='' comment=''
continue continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment