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):
_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),
]
......
......@@ -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
......
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