Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
cdb7b4af
Commit
cdb7b4af
authored
Aug 03, 2009
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python-ctypes: fix enum names conversion
parent
a3bcbaaf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
bindings/python-ctypes/footer.py
bindings/python-ctypes/footer.py
+2
-2
bindings/python-ctypes/generate.py
bindings/python-ctypes/generate.py
+2
-2
No files found.
bindings/python-ctypes/footer.py
View file @
cdb7b4af
#
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'
,
EventType
T
),
(
'type'
,
EventType
),
(
'object'
,
ctypes
.
c_void_p
),
(
'u'
,
EventUnion
),
]
...
...
bindings/python-ctypes/generate.py
View file @
cdb7b4af
...
...
@@ -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
(
'
\
i
n
group'
,
''
)
yield
(
typ
,
name
,
values
,
comment
)
yield
(
typ
,
name
.
strip
()
,
values
,
comment
)
comment
=
''
continue
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment