Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
d49e4eb5
Commit
d49e4eb5
authored
Jul 31, 2009
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python-ctypes: implement iterator protocol for Log
parent
f60c1042
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
bindings/python-ctypes/override.py
bindings/python-ctypes/override.py
+12
-0
No files found.
bindings/python-ctypes/override.py
View file @
d49e4eb5
...
@@ -140,3 +140,15 @@ class MediaListPlayer:
...
@@ -140,3 +140,15 @@ class MediaListPlayer:
class
LogIterator
:
class
LogIterator
:
def
__iter__
(
self
):
def
__iter__
(
self
):
return
self
return
self
def
next
(
self
):
if
not
self
.
has_next
():
raise
StopIteration
buffer
=
LogMessage
()
e
=
VLCException
()
ret
=
libvlc_log_iterator_next
(
self
,
buffer
,
e
)
return
ret
class
Log
:
def
__iter__
(
self
):
return
self
.
get_iterator
()
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