@@ -1042,6 +1042,10 @@ class PythonGenerator(_Generator):
1042
1042
'libvlc_player_programlist_t*' : 'ctypes.c_void_p' , # Opaque struct, do not mess with it.
1043
1043
'libvlc_picture_list_t*' : 'ctypes.c_void_p' , # Opaque struct, do not mess with it.
1044
1044
1045
+ # FIXME Temporary fix to generate valid code for the mapping of
1046
+ # libvlc_media_read_cb
1047
+ 'ptrdiff_t' : 'ctypes.c_void_p' ,
1048
+
1045
1049
# FIXME: gross hack to see if it makes things approximately work.#
1046
1050
# Unions should be properly converted
1047
1051
'union { libvlc_audio_track_t*' : 'ctypes.POINTER(AudioTrack)' ,
@@ -1056,12 +1060,15 @@ class PythonGenerator(_Generator):
1056
1060
'bool' : 'ctypes.c_bool' ,
1057
1061
'bool*' : 'ctypes.POINTER(ctypes.c_bool)' ,
1058
1062
'char**' : 'ListPOINTER(ctypes.c_char_p)' ,
1063
+ 'double' : 'ctypes.c_double' ,
1064
+ 'double*' : 'ctypes.POINTER(ctypes.c_double)' ,
1059
1065
'float' : 'ctypes.c_float' ,
1060
1066
'int' : 'ctypes.c_int' ,
1061
1067
'int*' : 'ctypes.POINTER(ctypes.c_int)' , # _video_get_cursor
1062
1068
'uintptr_t*' : 'ctypes.POINTER(ctypes.c_uint)' ,
1063
1069
'uint16_t' : 'ctypes.c_uint16' ,
1064
1070
'int64_t' : 'ctypes.c_int64' ,
1071
+ 'int64_t*' : 'ctypes.POINTER(ctypes.c_int64)' ,
1065
1072
'uint64_t' : 'ctypes.c_uint64' ,
1066
1073
'uint64_t*' : 'ctypes.POINTER(ctypes.c_uint64)' ,
1067
1074
'short' : 'ctypes.c_short' ,
0 commit comments