[vlc-commits] Support new APIs (rd_descriptions and renderer)

Olivier Aubert git at videolan.org
Fri Oct 7 12:11:37 CEST 2016


vlc/python | branch: master | Olivier Aubert <contact at olivieraubert.net> | Fri Oct  7 11:56:48 2016 +0200| [8c01d622f2394b514711e377b0f25a450e25246a] | committer: Olivier Aubert

Support new APIs (rd_descriptions and renderer)

Untested code, waiting for unit tests and user feedback

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=8c01d622f2394b514711e377b0f25a450e25246a
---

 generator/generate.py | 4 ++++
 generator/header.py   | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/generator/generate.py b/generator/generate.py
index aeb64fd..2f6ff5c 100755
--- a/generator/generate.py
+++ b/generator/generate.py
@@ -861,6 +861,10 @@ class PythonGenerator(_Generator):
         'libvlc_media_list_view_t*':   'MediaListView',
         'libvlc_media_player_t*':      'MediaPlayer',
         'libvlc_media_stats_t*':       'ctypes.POINTER(MediaStats)',
+        'libvlc_renderer_item_t*':    'ctypes.c_void_p', # Opaque struct, do not mess with it.
+        'libvlc_renderer_discoverer_t*':    'ctypes.c_void_p', # Opaque struct, do not mess with it.
+        'libvlc_rd_description_t**': 'ctypes.POINTER(RDDescription)',
+        'libvlc_rd_description_t***': 'ctypes.POINTER(ctypes.POINTER(RDDescription))',
         'libvlc_media_track_info_t**': 'ctypes.POINTER(ctypes.c_void_p)',
         'libvlc_rectangle_t*':         'ctypes.POINTER(Rectangle)',
         'libvlc_time_t':               'ctypes.c_longlong',
diff --git a/generator/header.py b/generator/header.py
index 786e801..97d527d 100755
--- a/generator/header.py
+++ b/generator/header.py
@@ -633,4 +633,10 @@ class MediaSlave(_Cstruct):
         ('i_priority', ctypes.c_uint)
     ]
 
+class RDDescription(_Cstruct):
+    _fields = [
+        ('name', ctypes.c_char_p),
+        ('longname', ctypes.c_char_p)
+    ]
+
 # End of header.py #



More information about the vlc-commits mailing list