convert.py: minor changes; to be extended to handle functions pointers
authorFilippo Carone <littlejohn@videolan.org>
Sat, 31 Jul 2010 00:29:13 +0000 (02:29 +0200)
committerFilippo Carone <littlejohn@videolan.org>
Sat, 31 Jul 2010 00:29:13 +0000 (02:29 +0200)
extras/convert.py

index 8a67d3d..af2e9ad 100755 (executable)
@@ -30,37 +30,41 @@ types_map = [
        ["...", "String... args"],
        ["(void)", "()"],
        ["const char * const *", "String[] "],
+       ["const char * const*", "String[] "],
        ["const ", ""],
-        ["const*", "String[]"],
+        ["const*", "String[] "],
        ["VLC_PUBLIC_API ", ""],
        ["char**", "String[] "],
        ["char **" , "String[] "],
        ["char*" , "String "],
        ["char *" , "String "],
-       ["libvlc_audio_output_t *", "LibVlcAudioOutput"],
-       ["libvlc_callback_t", "LibVlcCallback"],
+       ["libvlc_audio_output_t *", "LibVlcAudioOutput "],
+       ["libvlc_callback_t", "LibVlcCallback "],
        ["libvlc_event_manager_t *", "LibVlcEventManager "],
-       ["libvlc_event_type_t", "int"],
+       ["libvlc_event_type_t", "int "],
        ["libvlc_exception_t *", "libvlc_exception_t "],
        ["libvlc_instance_t *", "LibVlcInstance "],
        ["libvlc_log_t *", "LibVlcLog "],
        ["libvlc_log_iterator_t *", "LibVlcLogIterator "],
        ["libvlc_log_message_t *", "libvlc_log_message_t "],
-       ["libvlc_media_discoverer_t *", "LibVlcMediaDiscoverer"],
-       ["libvlc_media_library_t *", "LibVlcMediaLibrary"],
-       ["VLC_FORWARD_DECLARE_OBJECT(libvlc_media_list_t *)", "LibVlcMediaList"],
-       ["libvlc_media_list_t *", "LibVlcMediaList"],
-       ["libvlc_media_list_player_t *", "LibVlcMediaListPlayer"],
-       ["libvlc_media_list_view_t *", "LibVlcMediaListView"],
+       ["libvlc_media_discoverer_t *", "LibVlcMediaDiscoverer "],
+       ["libvlc_media_library_t *", "LibVlcMediaLibrary "],
+       ["VLC_FORWARD_DECLARE_OBJECT(libvlc_media_list_t *)", "LibVlcMediaList "],
+       ["libvlc_media_list_t *", "LibVlcMediaList "],
+       ["libvlc_media_list_player_t *", "LibVlcMediaListPlayer "],
+       ["libvlc_media_list_view_t *", "LibVlcMediaListView "],
         ["libvlc_media_t *", "LibVlcMedia "],
         ["libvlc_media_player_t *", "LibVlcMediaPlayer "],
-       ["libvlc_meta_t", "Meta"],
-       ["libvlc_state_t", "int"],
-       ["libvlc_time_t", "long"],
+       ["libvlc_meta_t", "Meta "],
+       ["libvlc_state_t", "int "],
+       ["libvlc_time_t", "long "],
        ["libvlc_track_description_t *", "LibVlcTrackDescription "],
-       ["uint32_t", "long"],
-       ["unsigned int", "int"],
-       ["unsigned", "int"],
+       ["uint32_t", "int "],
+       ["int64_t", "long "],
+       ["unsigned int", "int "],
+       ["int *", "Pointer "],
+       ["unsigned *", "Pointer "],
+       ["unsigned", "int "],
         ["void *", "Pointer "]
 ]