]> git.sesse.net Git - vlc/commitdiff
codecleanup: Replace input_Item by input_item.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 14 Aug 2008 22:09:58 +0000 (00:09 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 14 Aug 2008 22:32:07 +0000 (00:32 +0200)
47 files changed:
include/vlc_input.h
include/vlc_playlist.h
modules/access/cdda.c
modules/access/directory.c
modules/access/mms/mmsh.c
modules/control/http/util.c
modules/control/rc.c
modules/demux/mp4/mp4.c
modules/demux/playlist/asx.c
modules/demux/playlist/b4s.c
modules/demux/playlist/dvb.c
modules/demux/playlist/gvp.c
modules/demux/playlist/ifo.c
modules/demux/playlist/itml.c
modules/demux/playlist/m3u.c
modules/demux/playlist/pls.c
modules/demux/playlist/podcast.c
modules/demux/playlist/qtl.c
modules/demux/playlist/sgimb.c
modules/demux/playlist/shoutcast.c
modules/demux/playlist/xspf.c
modules/gui/macosx/applescript.m
modules/gui/macosx/playlist.m
modules/gui/macosx/wizard.m
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs_provider.cpp
modules/gui/wince/playlist.cpp
modules/gui/wxwidgets/dialogs/open.cpp
modules/gui/wxwidgets/dialogs/playlist.cpp
modules/gui/wxwidgets/dialogs/wizard.cpp
modules/misc/lua/vlc.c
modules/services_discovery/bonjour.c
modules/services_discovery/hal.c
modules/services_discovery/podcast.c
modules/services_discovery/sap.c
modules/services_discovery/shout.c
modules/services_discovery/upnp_cc.cpp
modules/services_discovery/upnp_intel.cpp
src/control/media.c
src/control/media_list.c
src/input/control.c
src/input/item.c
src/input/vlm.c
src/libvlccore.sym
src/playlist/item.c
src/playlist/loadsave.c
src/playlist/tree.c

index 09603e35f90f16afa7cc8533a1b692d2c074c858..ffbdcb818370fb137438ad37333bc4b7b83c47d0 100644 (file)
@@ -103,7 +103,7 @@ struct input_item_t
 #define ITEM_TYPE_NODE          8
 #define ITEM_TYPE_NUMBER        9
 
-static inline void input_ItemCopyOptions( input_item_t *p_parent,
+static inline void input_item_CopyOptions( input_item_t *p_parent,
                                           input_item_t *p_child )
 {
     int i;
@@ -137,7 +137,7 @@ static inline void input_item_SetName( input_item_t *p_item, const char *psz_nam
  * Like the playlist, that there is a new sub item. With this design
  * It is not the input item's responsability to keep all the ref of
  * the input item children. */
-static inline void input_ItemAddSubItem( input_item_t *p_parent,
+static inline void input_item_AddSubItem( input_item_t *p_parent,
                                          input_item_t *p_child )
 {
     vlc_event_t event;
@@ -150,22 +150,22 @@ static inline void input_ItemAddSubItem( input_item_t *p_parent,
     vlc_event_send( &p_parent->event_manager, &event );
 }
 
-/* Flags handled past input_ItemAddOpt() */
+/* Flags handled past input_item_AddOpt() */
 #define VLC_INPUT_OPTION_TRUSTED 0x2
 
-/* Flags handled within input_ItemAddOpt() */
+/* Flags handled within input_item_AddOpt() */
 #define VLC_INPUT_OPTION_UNIQUE  0x100
 
-VLC_EXPORT( int, input_ItemAddOpt, ( input_item_t *, const char *str, unsigned flags ) );
+VLC_EXPORT( int, input_item_AddOpt, ( input_item_t *, const char *str, unsigned flags ) );
 
 static inline
-int input_ItemAddOption (input_item_t *item, const char *str)
+int input_item_AddOption (input_item_t *item, const char *str)
 {
-    return input_ItemAddOpt (item, str, VLC_INPUT_OPTION_TRUSTED);
+    return input_item_AddOpt (item, str, VLC_INPUT_OPTION_TRUSTED);
 }
 
 static inline
-int input_ItemHasErrorWhenReading (input_item_t *item)
+int input_item_HasErrorWhenReading (input_item_t *item)
 {
     return item->b_error_when_reading;
 }
@@ -325,16 +325,16 @@ static inline void input_item_MetaMerge( input_item_t *p_i, const vlc_meta_t * p
 #define input_item_GetTrackID( item )        input_item_GetMeta( item, vlc_meta_TrackID )
 #define input_item_GetSetting( item )        input_item_GetMeta( item, vlc_meta_Setting )
 
-VLC_EXPORT( char *, input_ItemGetInfo, ( input_item_t *p_i, const char *psz_cat,const char *psz_name ) );
-VLC_EXPORT(int, input_ItemAddInfo, ( input_item_t *p_i, const char *psz_cat, const char *psz_name, const char *psz_format, ... ) LIBVLC_FORMAT( 4, 5 ) );
+VLC_EXPORT( char *, input_item_GetInfo, ( input_item_t *p_i, const char *psz_cat,const char *psz_name ) );
+VLC_EXPORT(int, input_item_AddInfo, ( input_item_t *p_i, const char *psz_cat, const char *psz_name, const char *psz_format, ... ) LIBVLC_FORMAT( 4, 5 ) );
 
-#define input_ItemNew( a,b,c ) input_ItemNewExt( a, b, c, 0, NULL, -1 )
-#define input_ItemNewExt(a,b,c,d,e,f) __input_ItemNewExt( VLC_OBJECT(a),b,c,d,e,f)
-VLC_EXPORT( input_item_t *, __input_ItemNewExt, (vlc_object_t *, const char *, const char*, int, const char *const *, mtime_t i_duration )  );
-VLC_EXPORT( input_item_t *, input_ItemNewWithType, ( vlc_object_t *, const char *, const char *e, int, const char *const *, mtime_t i_duration, int ) );
+#define input_item_New( a,b,c ) input_item_NewExt( a, b, c, 0, NULL, -1 )
+#define input_item_NewExt(a,b,c,d,e,f) __input_item_NewExt( VLC_OBJECT(a),b,c,d,e,f)
+VLC_EXPORT( input_item_t *, __input_item_NewExt, (vlc_object_t *, const char *, const char*, int, const char *const *, mtime_t i_duration )  );
+VLC_EXPORT( input_item_t *, input_item_NewWithType, ( vlc_object_t *, const char *, const char *e, int, const char *const *, mtime_t i_duration, int ) );
 
-#define input_ItemGetById(a,b) __input_ItemGetById( VLC_OBJECT(a),b )
-VLC_EXPORT( input_item_t *, __input_ItemGetById, (vlc_object_t *, int ) );
+#define input_item_GetById(a,b) __input_item_GetById( VLC_OBJECT(a),b )
+VLC_EXPORT( input_item_t *, __input_item_GetById, (vlc_object_t *, int ) );
 
 /*****************************************************************************
  * Meta data helpers
index e2737e681a866497b9cdc7ef020d0f7c347a9bc2..54e457c40377caa32b1efd1ed5bab0f5c7195804 100644 (file)
@@ -409,7 +409,7 @@ static inline int playlist_Import( playlist_t *p_playlist, const char *psz_file)
     input_item_t *p_input;
     snprintf( psz_uri, 256+9, "file/://%s", psz_file );
     const char *const psz_option = "meta-file";
-    p_input = input_ItemNewExt( p_playlist, psz_uri, psz_file,
+    p_input = input_item_NewExt( p_playlist, psz_uri, psz_file,
                                 1, &psz_option, -1 );
     playlist_AddInput( p_playlist, p_input, PLAYLIST_APPEND, PLAYLIST_END,
                        true, false );
index 18464c9b0bf4e91d485981fd9a15c5403e204410..a5d93adb9e4338e7f7c9b58063b8ae4a26f197b1 100644 (file)
@@ -467,12 +467,12 @@ static int GetTracks( access_t *p_access,
             psz_name = NULL;
 
         /* Create playlist items */
-        p_input_item = input_ItemNewWithType( VLC_OBJECT( p_playlist ),
+        p_input_item = input_item_NewWithType( VLC_OBJECT( p_playlist ),
                                               psz_uri, psz_name, 0, NULL, -1,
                                               ITEM_TYPE_DISC );
-        input_ItemAddOption( p_input_item, psz_first );
-        input_ItemAddOption( p_input_item, psz_last );
-        input_ItemAddOption( p_input_item, psz_opt );
+        input_item_AddOption( p_input_item, psz_first );
+        input_item_AddOption( p_input_item, psz_last );
+        input_item_AddOption( p_input_item, psz_opt );
 
 #ifdef HAVE_LIBCDDB
         /* If we have CDDB info, change the name */
index 51ea50b3c13284bd673bdc719220c8cb1fe57b00..6ceae94aafb6a63cd64864a0036b7ea3e647cc08 100644 (file)
@@ -530,13 +530,13 @@ static int ReadDir( access_t *p_access, playlist_t *p_playlist,
 
                 memmove (psz_uri + 7, psz_uri, sizeof (psz_uri) - 7);
                 memcpy (psz_uri, "file://", 7);
-                p_input = input_ItemNewWithType( p_playlist,
+                p_input = input_item_NewWithType( p_playlist,
                                                  psz_uri, entry, 0, NULL,
                                                  -1, ITEM_TYPE_FILE );
                 if (p_input != NULL)
                 {
                     if( p_current_input )
-                        input_ItemCopyOptions( p_current_input, p_input );
+                        input_item_CopyOptions( p_current_input, p_input );
                     assert( p_parent_category );
                     int i_ret = playlist_BothAddInput( p_playlist, p_input,
                                            p_parent_category,
index 6c1b4cc107ec151636113d67e75b5de1a7d6c101..10f2037130db04f2b8838277658e84a3e1702f1e 100644 (file)
@@ -188,8 +188,8 @@ int MMSHOpen( access_t *p_access )
         input_thread_t * p_input = vlc_object_find( p_access, VLC_OBJECT_INPUT, FIND_PARENT );
         input_item_t * p_new_loc;
         /** \bug we do not autodelete here */
-        p_new_loc = input_ItemNew( p_access, psz_location, psz_location );
-        input_ItemAddSubItem( input_GetItem( p_input ), p_new_loc );
+        p_new_loc = input_item_New( p_access, psz_location, psz_location );
+        input_item_AddSubItem( input_GetItem( p_input ), p_new_loc );
         vlc_object_release( p_input );
 
         free( psz_location );
index cd84f685864cd359956b9dad05745871a38bf8d6..54ba5c44b8e2dc4058a7bb5a0ca83ed0e8066818 100644 (file)
@@ -848,7 +848,7 @@ input_item_t *MRLParse( intf_thread_t *p_intf, char *_psz,
         s_temp = s_mrl + strlen( s_mrl );
     }
 
-    p_input = input_ItemNew( p_intf, s_mrl, psz_name );
+    p_input = input_item_New( p_intf, s_mrl, psz_name );
     s_mrl = s_temp;
 
     /* now we can take care of the options */
@@ -861,7 +861,7 @@ input_item_t *MRLParse( intf_thread_t *p_intf, char *_psz,
         {
             s_temp = s_mrl + strlen( s_mrl );
         }
-        input_ItemAddOption( p_input, s_mrl );
+        input_item_AddOption( p_input, s_mrl );
         s_mrl = s_temp;
     }
 
index 2caddd2ecdebb90439fef5c9e03ac8961afb9ccc..5e45c61a6272ef15f651812a5e85d39c30ae68a5 100644 (file)
@@ -2222,10 +2222,10 @@ static input_item_t *parse_MRL( intf_thread_t *p_intf, char *psz_mrl )
     /* Now create a playlist item */
     if( psz_item_mrl )
     {
-        p_item = input_ItemNew( p_intf, psz_item_mrl, NULL );
+        p_item = input_item_New( p_intf, psz_item_mrl, NULL );
         for( i = 0; i < i_options; i++ )
         {
-            input_ItemAddOption( p_item, ppsz_options[i] );
+            input_item_AddOption( p_item, ppsz_options[i] );
         }
     }
 
index 952480e26f757b6f5ee6002d0ee0212de9334bc7..ffd20f6ebc9e3e01a8e08951005a48e1c8563aa7 100644 (file)
@@ -417,10 +417,10 @@ static int Open( vlc_object_t * p_this )
                 }
                 input_item_t *p_input;
                 msg_Dbg( p_demux, "adding ref = `%s'", psz_ref );
-                p_input = input_ItemNewExt( p_demux, psz_ref, NULL,
+                p_input = input_item_NewExt( p_demux, psz_ref, NULL,
                                     0, NULL, -1 );
-                input_ItemCopyOptions( p_current, p_input );
-                input_ItemAddSubItem( p_current, p_input );
+                input_item_CopyOptions( p_current, p_input );
+                input_item_AddSubItem( p_current, p_input );
                 vlc_gc_decref( p_input );
             }
             else
index 0af2d4c0ed29594ae0195e2c117f73fec3685b33..8aad20a7bd822e38baa494d3225f65ea6818cb2d 100644 (file)
@@ -459,9 +459,9 @@ static int Demux( demux_t *p_demux )
                             psz_string = malloc( i_strlen*sizeof( char ) +1);
                             memcpy( psz_string, psz_backup, i_strlen );
                             psz_string[i_strlen] = '\0';
-                            p_input = input_ItemNew( p_demux, psz_string, psz_title_asx );
-                            input_ItemCopyOptions( p_current_input, p_input );
-                            input_ItemAddSubItem( p_current_input, p_input );
+                            p_input = input_item_New( p_demux, psz_string, psz_title_asx );
+                            input_item_CopyOptions( p_current_input, p_input );
+                            input_item_AddSubItem( p_current_input, p_input );
                             free( psz_string );
                         }
                         else continue;
@@ -516,9 +516,9 @@ static int Demux( demux_t *p_demux )
                     /* create the new entry */
                     asprintf( &psz_name, "%d %s", i_entry_count, ( psz_title_entry ? psz_title_entry : p_current_input->psz_name ) );
 
-                    p_entry = input_ItemNewExt( p_demux, psz_href, psz_name, i_options, (const char * const *)ppsz_options, -1 );
+                    p_entry = input_item_NewExt( p_demux, psz_href, psz_name, i_options, (const char * const *)ppsz_options, -1 );
                     FREENULL( psz_name );
-                    input_ItemCopyOptions( p_current_input, p_entry );
+                    input_item_CopyOptions( p_current_input, p_entry );
                     while( i_options )
                     {
                         psz_name = ppsz_options[--i_options];
@@ -530,7 +530,7 @@ static int Demux( demux_t *p_demux )
                     if( psz_copyright_entry ) input_item_SetCopyright( p_entry, psz_copyright_entry );
                     if( psz_moreinfo_entry ) input_item_SetURL( p_entry, psz_moreinfo_entry );
                     if( psz_abstract_entry ) input_item_SetDescription( p_entry, psz_abstract_entry );
-                    input_ItemAddSubItem( p_current_input, p_entry );
+                    input_item_AddSubItem( p_current_input, p_entry );
                     vlc_gc_decref( p_entry );
                 }
 
index bd001894cbbbdfec5b8623fabd064f67d681a5a1..8431a06fd2e9f8810de9b8f96e31903d2ba5aff1 100644 (file)
@@ -256,7 +256,7 @@ static int Demux( demux_t *p_demux )
                 if( !psz_elname ) return -1;
                 if( !strcmp( psz_elname, "entry" ) )
                 {
-                    p_input = input_ItemNewExt( p_demux, psz_mrl, psz_name,
+                    p_input = input_item_NewExt( p_demux, psz_mrl, psz_name,
                                                 0, NULL, -1 );
                     if( psz_now )
                         input_item_SetNowPlaying( p_input, psz_now );
@@ -267,7 +267,7 @@ static int Demux( demux_t *p_demux )
                     if( psz_bitrate )
                         msg_Err( p_demux, "Unsupported meta bitrate" );
 
-                    input_ItemAddSubItem( p_current_input, p_input );
+                    input_item_AddSubItem( p_current_input, p_input );
                     vlc_gc_decref( p_input );
                     FREENULL( psz_name );
                     FREENULL( psz_mrl );
index 5bb50cfab913ed65e2ebb0a9303b2c753df94387..904be67cd4f431eeadf962b3ea2038a044162a13 100644 (file)
@@ -117,13 +117,13 @@ static int Demux( demux_t *p_demux )
 
         EnsureUTF8( psz_name );
 
-        p_input = input_ItemNewExt( p_demux, "dvb://", psz_name, 0, NULL, -1 );
+        p_input = input_item_NewExt( p_demux, "dvb://", psz_name, 0, NULL, -1 );
         for( i = 0; i< i_options; i++ )
         {
             EnsureUTF8( ppsz_options[i] );
-            input_ItemAddOption( p_input, ppsz_options[i] );
+            input_item_AddOption( p_input, ppsz_options[i] );
         }
-        input_ItemAddSubItem( p_current_input, p_input );
+        input_item_AddSubItem( p_current_input, p_input );
         vlc_gc_decref( p_input );
         while( i_options-- ) free( ppsz_options[i_options] );
         free( ppsz_options );
index fdec2fbd86e97e505699aa9202baab24244fc54a..089284d409f0a43769cbbf810d7d8033bfe28733 100644 (file)
@@ -201,14 +201,14 @@ static int Demux( demux_t *p_demux )
     }
     else
     {
-        p_input = input_ItemNewExt( p_demux,
+        p_input = input_item_NewExt( p_demux,
                                     psz_url, psz_title, 0, NULL, -1 );
-#define SADD_INFO( type, field ) if( field ) { input_ItemAddInfo( \
+#define SADD_INFO( type, field ) if( field ) { input_item_AddInfo( \
                     p_input, _("Google Video"), _(type), "%s", field ) ; }
         SADD_INFO( "gvp_version", psz_version );
         SADD_INFO( "docid", psz_docid );
         SADD_INFO( "description", psz_description );
-        input_ItemAddSubItem( p_current_input, p_input );
+        input_item_AddSubItem( p_current_input, p_input );
         vlc_gc_decref( p_input );
     }
 
index bf02d743554f539aeb9197480300a8e3be91627f..058da357782e6e9283dbbcf56872ff1e3d89cb83 100644 (file)
@@ -95,8 +95,8 @@ static int Demux( demux_t *p_demux )
     psz_url = (char *)malloc( len+1 );
     snprintf( psz_url, len+1, "dvd://%s", p_demux->psz_path );
 
-    p_input = input_ItemNewExt( p_demux, psz_url, psz_url, 0, NULL, -1 );
-    input_ItemAddSubItem( p_current_input, p_input );
+    p_input = input_item_NewExt( p_demux, psz_url, psz_url, 0, NULL, -1 );
+    input_item_AddSubItem( p_current_input, p_input );
     vlc_gc_decref( p_input );
 
     HANDLE_PLAY_AND_RELEASE;
index 9f756a711154edf0ce9564512fea456973f58925..44e8dd52763eb0ff9087d8d5559d72ee690b4e44 100644 (file)
@@ -380,9 +380,9 @@ static bool parse_track_dict COMPLEX_INTERFACE
             memmove( psz_uri + 7, psz_uri + 17, strlen( psz_uri ) - 9 );
             msg_Info( p_demux, "Adding '%s'", psz_uri );
 
-            p_new_input = input_ItemNewExt( p_demux, psz_uri,
+            p_new_input = input_item_NewExt( p_demux, psz_uri,
                                             NULL, 0, NULL, -1 );
-            input_ItemAddSubItem( p_input_item, p_new_input );
+            input_item_AddSubItem( p_input_item, p_new_input );
 
             /* add meta info */
             add_meta( p_new_input, p_track );
index f2de477b73b00dab112e5932a935db61578bbbee..b5369ef7126bbcb5dd6891f24bc16493efdcb8bb 100644 (file)
@@ -217,15 +217,15 @@ static int Demux( demux_t *p_demux )
             b_cleanup = true;
             if( !psz_mrl ) goto error;
 
-            p_input = input_ItemNewExt( p_demux, psz_mrl, psz_name,
+            p_input = input_item_NewExt( p_demux, psz_mrl, psz_name,
                                         0, NULL, i_duration );
 
             if ( psz_artist && *psz_artist )
                 input_item_SetArtist( p_input, psz_artist );
 
-            input_ItemAddSubItem( p_current_input, p_input );
+            input_item_AddSubItem( p_current_input, p_input );
             for( int i = 0; i < i_options; i++ )
-                input_ItemAddOpt( p_input, ppsz_options[i], 0 );
+                input_item_AddOpt( p_input, ppsz_options[i], 0 );
             vlc_gc_decref( p_input );
             free( psz_mrl );
         }
index 3a8d6f2231f2aacde48c6628c7cc9736325e5bb4..099f5c37484da2dab63a03df4f3727fb096a3a2e 100644 (file)
@@ -159,10 +159,10 @@ static int Demux( demux_t *p_demux )
         {
             if( psz_mrl )
             {
-                p_input = input_ItemNewExt( p_demux, psz_mrl, psz_name,
+                p_input = input_item_NewExt( p_demux, psz_mrl, psz_name,
                                             0, NULL, -1 );
-                input_ItemCopyOptions( p_current_input, p_input );
-                input_ItemAddSubItem( p_current_input, p_input );
+                input_item_CopyOptions( p_current_input, p_input );
+                input_item_AddSubItem( p_current_input, p_input );
                 vlc_gc_decref( p_input );
             }
             else
@@ -215,9 +215,9 @@ static int Demux( demux_t *p_demux )
     /* Add last object */
     if( psz_mrl )
     {
-        p_input = input_ItemNewExt( p_demux, psz_mrl, psz_name,0, NULL, -1 );
-        input_ItemCopyOptions( p_current_input, p_input );
-        input_ItemAddSubItem( p_current_input, p_input );
+        p_input = input_item_NewExt( p_demux, psz_mrl, psz_name,0, NULL, -1 );
+        input_item_CopyOptions( p_current_input, p_input );
+        input_item_AddSubItem( p_current_input, p_input );
         vlc_gc_decref( p_input );
         free( psz_mrl_orig );
         psz_mrl = NULL;
index 31306f4f942fad9c375bf8871be3ba240f2eb3a2..20f8754fec8b3258fc6f9eb013a1502400ed85b4 100644 (file)
@@ -233,7 +233,7 @@ static int Demux( demux_t *p_demux )
 #define ADD_GINFO( info, name ) \
     else if( !b_item && !b_image && !strcmp( psz_elname, name ) ) \
     { \
-        input_ItemAddInfo( p_current_input, _("Podcast Info"), \
+        input_item_AddInfo( p_current_input, _("Podcast Info"), \
                                 _( info ), "%s", psz_text ); \
     }
                 ADD_GINFO( "Podcast Link", "link" )
@@ -246,7 +246,7 @@ static int Demux( demux_t *p_demux )
                          && ( !strcmp( psz_elname, "itunes:summary" )
                             ||!strcmp( psz_elname, "description" ) ) )
                 { /* <description> isn't standard iTunes podcast stuff */
-                    input_ItemAddInfo( p_current_input,
+                    input_item_AddInfo( p_current_input,
                              _( "Podcast Info" ), _( "Podcast Summary" ),
                              "%s", psz_text );
                 }
@@ -272,11 +272,11 @@ static int Demux( demux_t *p_demux )
                         msg_Err( p_demux, "invalid XML (no enclosure markup)" );
                         return -1;
                     }
-                    p_input = input_ItemNewExt( p_demux, psz_item_mrl,
+                    p_input = input_item_NewExt( p_demux, psz_item_mrl,
                                                 psz_item_name, 0, NULL, -1 );
                     if( p_input == NULL ) break;
 #define ADD_INFO( info, field ) \
-    if( field ) { input_ItemAddInfo( p_input, \
+    if( field ) { input_item_AddInfo( p_input, \
                             _( "Podcast Info" ),  _( info ), "%s", field ); }
                     ADD_INFO( "Podcast Publication Date", psz_item_date  );
                     ADD_INFO( "Podcast Author", psz_item_author );
@@ -288,13 +288,13 @@ static int Demux( demux_t *p_demux )
                     ADD_INFO( "Podcast Type", psz_item_type );
                     if( psz_item_size )
                     {
-                        input_ItemAddInfo( p_input,
+                        input_item_AddInfo( p_input,
                                                 _( "Podcast Info" ),
                                                 _( "Podcast Size" ),
                                                 "%s bytes",
                                                 psz_item_size );
                     }
-                    input_ItemAddSubItem( p_current_input, p_input );
+                    input_item_AddSubItem( p_current_input, p_input );
                     vlc_gc_decref( p_input );
                     FREENULL( psz_item_name );
                     FREENULL( psz_item_mrl );
index e1585c6dc108c1cf407911a72715c770c8cdcb52..778608765b92e00f1a5cb418fa816534fb32748a 100644 (file)
@@ -349,19 +349,19 @@ static int Demux( demux_t *p_demux )
     }
     else
     {
-        p_input = input_ItemNewExt( p_demux,
+        p_input = input_item_NewExt( p_demux,
                                 psz_src, psz_moviename, 0, NULL, -1 );
-#define SADD_INFO( type, field ) if( field ) { input_ItemAddInfo( \
+#define SADD_INFO( type, field ) if( field ) { input_item_AddInfo( \
                     p_input, "QuickTime Media Link", _(type), "%s", field ) ; }
         SADD_INFO( "href", psz_href );
         SADD_INFO( "mime type", psz_mimetype );
-        input_ItemAddSubItem( p_current_input, p_input );
+        input_item_AddSubItem( p_current_input, p_input );
         vlc_gc_decref( p_input );
         if( psz_qtnext )
         {
-            p_input = input_ItemNewExt( p_demux,
+            p_input = input_item_NewExt( p_demux,
                                         psz_qtnext, NULL, 0, NULL, -1 );
-            input_ItemAddSubItem( p_current_input, p_input );
+            input_item_AddSubItem( p_current_input, p_input );
             vlc_gc_decref( p_input );
         }
     }
index 2f5ec2298208197f6fe89aa4fac50f57d456fa80..612e5e763a204b3d4a9d8d9ccbce6c11096a5655 100644 (file)
@@ -353,7 +353,7 @@ static int Demux ( demux_t *p_demux )
                 p_sys->psz_uri, p_sys->i_sid );
     }
 
-    p_child = input_ItemNewWithType( VLC_OBJECT(p_demux), p_sys->psz_uri,
+    p_child = input_item_NewWithType( VLC_OBJECT(p_demux), p_sys->psz_uri,
                       p_sys->psz_name ? p_sys->psz_name : p_sys->psz_uri,
                       0, NULL, p_sys->i_duration, ITEM_TYPE_NET );
  
@@ -363,31 +363,31 @@ static int Demux ( demux_t *p_demux )
         return -1;
     }
 
-    input_ItemCopyOptions( p_current_input, p_child );
+    input_item_CopyOptions( p_current_input, p_child );
     if( p_sys->i_packet_size && p_sys->psz_mcast_ip )
     {
         char *psz_option;
         p_sys->i_packet_size += 1000;
         asprintf( &psz_option, "mtu=%i", p_sys->i_packet_size );
-        input_ItemAddOption( p_child, psz_option );
+        input_item_AddOption( p_child, psz_option );
         free( psz_option );
     }
     if( !p_sys->psz_mcast_ip )
     {
         char *psz_option;
         asprintf( &psz_option, "rtsp-caching=5000" );
-        input_ItemAddOption( p_child, psz_option );
+        input_item_AddOption( p_child, psz_option );
         free( psz_option );
     }
     if( !p_sys->psz_mcast_ip && p_sys->b_rtsp_kasenna )
     {
         char *psz_option;
         asprintf( &psz_option, "rtsp-kasenna" );
-        input_ItemAddOption( p_child, psz_option );
+        input_item_AddOption( p_child, psz_option );
         free( psz_option );
     }
 
-    input_ItemAddSubItem( p_current_input, p_child );
+    input_item_AddSubItem( p_current_input, p_child );
     vlc_gc_decref( p_child );
     HANDLE_PLAY_AND_RELEASE
     return 0; /* Needed for correct operation of go back */
index 40a79b3a9bd6bd5feea45c99f2a84b3d011ef7af..e967fd347b79562ca6f926113ff7523550571189 100644 (file)
@@ -228,12 +228,12 @@ static int DemuxGenre( demux_t *p_demux )
                             + strlen( "?genre=" ) + strlen( psz_name ) + 1 );
                     sprintf( psz_mrl, SHOUTCAST_BASE_URL "?genre=%s",
                              psz_name );
-                    p_input = input_ItemNewExt( p_demux, psz_mrl,
+                    p_input = input_item_NewExt( p_demux, psz_mrl,
                                                 psz_name, 0, NULL, -1 );
-                    input_ItemCopyOptions( p_sys->p_current_input,
+                    input_item_CopyOptions( p_sys->p_current_input,
                                                 p_input );
                     free( psz_mrl );
-                    input_ItemAddSubItem( p_sys->p_current_input, p_input );
+                    input_item_AddSubItem( p_sys->p_current_input, p_input );
                     vlc_gc_decref( p_input );
                     FREENULL( psz_name );
                 }
@@ -402,14 +402,14 @@ static int DemuxStation( demux_t *p_demux )
                         sprintf( psz_mrl, SHOUTCAST_TUNEIN_BASE_URL "%s?id=%s",
                              psz_base, psz_id );
                     }
-                    p_input = input_ItemNewExt( p_demux, psz_mrl,
+                    p_input = input_item_NewExt( p_demux, psz_mrl,
                                                 psz_name , 0, NULL, -1 );
                     free( psz_mrl );
 
-                    input_ItemCopyOptions( p_sys->p_current_input,
+                    input_item_CopyOptions( p_sys->p_current_input,
                                                 p_input );
 
-#define SADD_INFO( type, field ) if( field ) { input_ItemAddInfo( \
+#define SADD_INFO( type, field ) if( field ) { input_item_AddInfo( \
                     p_input, _("Shoutcast"), _(type), "%s", field ) ; }
                     SADD_INFO( "Mime type", psz_mt );
                     SADD_INFO( "Bitrate", psz_br );
@@ -421,7 +421,7 @@ static int DemuxStation( demux_t *p_demux )
                         input_item_SetNowPlaying( p_input, psz_ct );
                     if( psz_rt )
                         input_item_SetRating( p_input, psz_rt );
-                    input_ItemAddSubItem( p_sys->p_current_input, p_input );
+                    input_item_AddSubItem( p_sys->p_current_input, p_input );
                     vlc_gc_decref( p_input );
                     FREENULL( psz_name );
                     FREENULL( psz_mt );
index a0d308cd8330973ed1858fac83dc018f6f0f2039..260c42144c0b1dd80556266220277dfb31351f30 100644 (file)
@@ -136,7 +136,7 @@ int Demux( demux_t *p_demux )
         input_item_t *p_new_input = p_demux->p_sys->pp_tracklist[i];
         if( p_new_input )
         {
-            input_ItemAddSubItem( p_current_input, p_new_input );
+            input_item_AddSubItem( p_current_input, p_new_input );
         }
     }
 
@@ -558,10 +558,10 @@ static bool parse_track_node COMPLEX_INTERFACE
                            free( psz_uri );
                            psz_uri = psz_tmp;
                         }
-                        p_new_input = input_ItemNewExt( p_demux, psz_uri,
+                        p_new_input = input_item_NewExt( p_demux, psz_uri,
                                                         NULL, 0, NULL, -1 );
                         free( psz_uri );
-                        input_ItemCopyOptions( p_input_item, p_new_input );
+                        input_item_CopyOptions( p_input_item, p_new_input );
                         psz_uri = NULL;
                         FREE_ATT();
                         p_handler = NULL;
@@ -672,7 +672,7 @@ static bool set_option SIMPLE_INTERFACE
     /* re-convert xml special characters inside psz_value */
     resolve_xml_special_chars( psz_value );
     
-    input_ItemAddOpt( p_input, psz_value, 0 );
+    input_item_AddOpt( p_input, psz_value, 0 );
     
     return true;
 }
@@ -734,11 +734,11 @@ static bool parse_extension_node COMPLEX_INTERFACE
             msg_Warn( p_demux, "<node> requires \"title\" attribute" );
             return false;
         }
-        p_new_input = input_ItemNewWithType( VLC_OBJECT( p_demux ), "vlc://nop",
+        p_new_input = input_item_NewWithType( VLC_OBJECT( p_demux ), "vlc://nop",
                                 psz_title, 0, NULL, -1, ITEM_TYPE_DIRECTORY );
         if( p_new_input )
         {
-            input_ItemAddSubItem( p_input_item, p_new_input );
+            input_item_AddSubItem( p_input_item, p_new_input );
             p_input_item = p_new_input;
             vlc_gc_decref( p_new_input );
         }
@@ -914,7 +914,7 @@ static bool parse_extitem_node COMPLEX_INTERFACE
     p_new_input = p_demux->p_sys->pp_tracklist[ i_href ];
     if( p_new_input )
     {
-        input_ItemAddSubItem( p_input_item, p_new_input );
+        input_item_AddSubItem( p_input_item, p_new_input );
         vlc_gc_decref( p_new_input );
         p_demux->p_sys->pp_tracklist[i_href] = NULL;
     }
index cfba3bb341d922fd75935874d088d68b5321d9b1..b7032344e9a6977f32370b30201de52186252d95 100644 (file)
@@ -52,7 +52,7 @@
             NSURL * o_url;
             input_item_t *p_input;
 
-            p_input = input_ItemNew( p_playlist,
+            p_input = input_item_New( p_playlist,
                                     [o_urlString fileSystemRepresentation],
                                     [[[NSFileManager defaultManager]
                                     displayNameAtPath: o_urlString] UTF8String] );
index 5e01eda7cbdf8c4d0308eb18b3a357497de148ad..a4d3f4f75b55aac5283c51f7178af579c5df78bc 100644 (file)
     }
     else if( [[o_tc identifier] isEqualToString:@"status"] )
     {
-        if( input_ItemHasErrorWhenReading( p_item->p_input ) )
+        if( input_item_HasErrorWhenReading( p_item->p_input ) )
         {
             o_value = [NSImage imageWithWarningIcon];
         }
         o_uri = o_temp;
     }
 
-    p_input = input_ItemNew( p_playlist, [o_uri fileSystemRepresentation], [o_name UTF8String] );
+    p_input = input_item_New( p_playlist, [o_uri fileSystemRepresentation], [o_name UTF8String] );
     if( !p_input )
        return NULL;
 
     {
         for( i = 0; i < (int)[o_options count]; i++ )
         {
-            input_ItemAddOption( p_input, strdup( [[o_options objectAtIndex:i] UTF8String] ) );
+            input_item_AddOption( p_input, strdup( [[o_options objectAtIndex:i] UTF8String] ) );
         }
     }
 
         PL_LOCK;
         o_current_name = [NSString stringWithUTF8String:
             p_item->pp_children[i_current]->p_input->psz_name];
-        psz_temp = input_ItemGetInfo( p_item->p_input ,
+        psz_temp = input_item_GetInfo( p_item->p_input ,
                    _("Meta-information"),_("Artist") );
         o_current_author = [NSString stringWithUTF8String: psz_temp];
         free( psz_temp);
index efc3fef4ff7cd636ad121d97b28de588f052a0bc..ec94012776d9100d01f8023e4b712a0407f16f9a 100644 (file)
@@ -1265,17 +1265,17 @@ static VLCWizard *_o_sharedInstance = nil;
             NSString *tempString = [NSString stringWithFormat:
                 @"%@ (%i/%i)", _NS("Streaming/Transcoding Wizard"),
                 ( x + 1 ), y];
-            input_item_t *p_input = input_ItemNew( p_playlist,
+            input_item_t *p_input = input_item_New( p_playlist,
                 [[[o_userSelections objectForKey:@"pathToStrm"]
                 objectAtIndex:x] UTF8String],
                 [tempString UTF8String] );
-            input_ItemAddOption( p_input, [[[o_userSelections
+            input_item_AddOption( p_input, [[[o_userSelections
                 objectForKey:@"opts"] objectAtIndex: x] UTF8String]);
 
             if(! [[o_userSelections objectForKey:@"partExtractFrom"]
                 isEqualToString:@""] )
             {
-                input_ItemAddOption( p_input, [[NSString
+                input_item_AddOption( p_input, [[NSString
                     stringWithFormat: @"start-time=%@", [o_userSelections
                     objectForKey: @"partExtractFrom"]] UTF8String] );
             }
@@ -1283,12 +1283,12 @@ static VLCWizard *_o_sharedInstance = nil;
             if(! [[o_userSelections objectForKey:@"partExtractTo"]
                 isEqualToString:@""] )
             {
-                input_ItemAddOption( p_input, [[NSString
+                input_item_AddOption( p_input, [[NSString
                     stringWithFormat: @"stop-time=%@", [o_userSelections
                     objectForKey: @"partExtractTo"]] UTF8String] );
             }
 
-            input_ItemAddOption( p_input, [[NSString stringWithFormat:
+            input_item_AddOption( p_input, [[NSString stringWithFormat:
                 @"ttl=%@", [o_userSelections objectForKey:@"ttl"]]
                 UTF8String] );
 
index b3dbafcf7a8b2b5a557c3cd7de362ae0b373bdc2..88df3e1a5df9ad04c3708563859f4d05f4ea689a 100644 (file)
@@ -308,13 +308,13 @@ void OpenDialog::finish( bool b_enqueue = false )
             bool b_start = !i && !b_enqueue;
             input_item_t *p_input;
 
-            p_input = input_ItemNew( p_intf, qtu( tempMRL[i] ), NULL );
+            p_input = input_item_New( p_intf, qtu( tempMRL[i] ), NULL );
 
             /* Insert options */
             while( i + 1 < tempMRL.size() && tempMRL[i + 1].startsWith( ":" ) )
             {
                 i++;
-                input_ItemAddOption( p_input, qtu( tempMRL[i] ) );
+                input_item_AddOption( p_input, qtu( tempMRL[i] ) );
             }
 
             /* Switch between enqueuing and starting the item */
index dca23626d9a5c09f6a1bef761b9dc3c3056b8543..2bb90cb899571140f04bd9a2a9550b16aae83425 100644 (file)
@@ -414,7 +414,7 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
 {
     QString dir = QFileDialog::getExistingDirectory( 0, qtr("Open Directory") );
     if (!dir.isEmpty()) {
-        input_item_t *p_input = input_ItemNewExt( THEPL,
+        input_item_t *p_input = input_item_NewExt( THEPL,
                                         qtu( "directory://" + dir ), NULL,
                                         0, NULL, -1 );
 
index 44ffe549436b8917ad6a01587846b6eab4ac260d..5d4f0dca0c4c20e48c7e303f50b26367cfb65825 100644 (file)
@@ -667,7 +667,7 @@ void Playlist::UpdateItem( int i )
 
     ListView_SetItemText( hListView, i, 0, _FROMMB(p_item->input.psz_name) );
     ListView_SetItemText( hListView, i, 1,
-                          _FROMMB( input_ItemGetInfo( &p_item->input,
+                          _FROMMB( input_item_GetInfo( &p_item->input,
                                    _("General") , _("Author") ) ) );
 
     char psz_duration[MSTRTIME_MAX_SIZE];
index 7430c62290d8bec87ab11ee5bbef3bd144f98ce8..4815671f16ab3a76350f6cee42113ce5ead62bbd 100644 (file)
@@ -1168,7 +1168,7 @@ void OpenDialog::OnOk( wxCommandEvent& WXUNUSED(event) )
         char *psz_utf8;
 
         psz_utf8 = wxFromLocale( mrl[i] );
-        p_input = input_ItemNew( p_intf, psz_utf8, NULL );
+        p_input = input_item_New( p_intf, psz_utf8, NULL );
         wxLocaleFree( psz_utf8 );
 
         /* Insert options */
@@ -1176,7 +1176,7 @@ void OpenDialog::OnOk( wxCommandEvent& WXUNUSED(event) )
                ((const char *)mrl[i + 1].mb_str(wxConvUTF8))[0] == ':' )
         {
             psz_utf8 = wxFromLocale( mrl[i + 1] );
-            input_ItemAddOption( p_input, psz_utf8 );
+            input_item_AddOption( p_input, psz_utf8 );
             wxLocaleFree( psz_utf8 );
             i++;
         }
@@ -1187,7 +1187,7 @@ void OpenDialog::OnOk( wxCommandEvent& WXUNUSED(event) )
             for( int j = 0; j < (int)subsfile_mrl.GetCount(); j++ )
             {
                 psz_utf8 = wxFromLocale( subsfile_mrl[j] );
-                input_ItemAddOption( p_input, psz_utf8 );
+                input_item_AddOption( p_input, psz_utf8 );
                 wxLocaleFree( psz_utf8 );
             }
         }
@@ -1198,7 +1198,7 @@ void OpenDialog::OnOk( wxCommandEvent& WXUNUSED(event) )
             for( int j = 0; j < (int)sout_mrl.GetCount(); j++ )
             {
                 psz_utf8 = wxFromLocale( sout_mrl[j] );
-                input_ItemAddOption( p_input, psz_utf8 );
+                input_item_AddOption( p_input, psz_utf8 );
                 wxLocaleFree( psz_utf8 );
             }
         }
index 9ca6fc98ff4a4cf1cc62e92e66a56a2cd23cddf5..9f0a12ebe6ab88664540084a9db00ba4f80fdf5c 100644 (file)
@@ -1285,7 +1285,7 @@ bool PlaylistFileDropTarget::OnDropFiles( wxCoord x, wxCoord y,
     for( size_t i = 0; i < filenames.GetCount(); i++ )
     {
         char *psz_utf8 = wxDnDFromLocale( filenames[i] );
-        input_item_t *p_input = input_ItemNew( p->p_playlist,
+        input_item_t *p_input = input_item_New( p->p_playlist,
                                               psz_utf8, psz_utf8 );
         int i_ret = ( playlist_BothAddInput( p->p_playlist, p_input, p_dest,
                 PLAYLIST_PREPARSE, i_pos, NULL, NULL, pl_Unlocked ) != VLC_SUCCESS );
index 8d0c6f5deba80bf69ac9fce908c139b404f3e5dc..ce38db132d7c59f205a65892d4d94dac424c85c2 100644 (file)
@@ -1609,25 +1609,25 @@ void WizardDialog::Run()
         playlist_t *p_playlist = pl_Yield( p_intf );
         if( p_playlist )
         {
-            input_item_t *p_input = input_ItemNew( p_playlist, mrl,
+            input_item_t *p_input = input_item_New( p_playlist, mrl,
                                                    ITEM_NAME );
-            input_ItemAddOption( p_input, psz_opt );
+            input_item_AddOption( p_input, psz_opt );
             if( i_from != 0)
             {
                 char psz_from[20];
                 snprintf( psz_from, 20, "start-time=%i", i_from);
-                input_ItemAddOption( p_input, psz_from );
+                input_item_AddOption( p_input, psz_from );
             }
             if( i_to != 0)
             {
                 char psz_to[20];
                 snprintf( psz_to, 20, "stop-time=%i", i_to);
-                input_ItemAddOption( p_input, psz_to );
+                input_item_AddOption( p_input, psz_to );
             }
 
             char psz_ttl[20];
             snprintf( psz_ttl, 20, "ttl=%i",i_ttl );
-            input_ItemAddOption( p_input, psz_ttl );
+            input_item_AddOption( p_input, psz_ttl );
 
             /* FIXME: playlist_AddInput() can fail */
             playlist_AddInput( p_playlist, p_input,
index 36fee88a0624d7a02119dda4aa80e2c475d84dc4..dcf87b12f5618039161c3f2e02851e322f1388a2 100644 (file)
@@ -316,7 +316,7 @@ void __vlclua_read_custom_meta_data( vlc_object_t *p_this, lua_State *L,
                         msg_Dbg( p_this, "Custom meta %s, %s: %s",
                                  psz_meta_category, psz_meta_name,
                                  psz_meta_value );
-                        input_ItemAddInfo( p_input, psz_meta_category,
+                        input_item_AddInfo( p_input, psz_meta_category,
                                            psz_meta_name, psz_meta_value );
                     }
                     lua_pop( L, 1 ); /* pop item */
@@ -433,7 +433,7 @@ int __vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
                     vlclua_read_options( p_this, L, &i_options, &ppsz_options );
 
                     /* Create input item */
-                    p_input = input_ItemNewExt( p_playlist, psz_path,
+                    p_input = input_item_NewExt( p_playlist, psz_path,
                                                 psz_name, i_options,
                                                 (const char **)ppsz_options,
                                                 i_duration );
@@ -448,7 +448,7 @@ int __vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
 
                     /* Append item to playlist */
                     if( p_parent ) /* Add to node */
-                        input_ItemAddSubItem( p_parent, p_input );
+                        input_item_AddSubItem( p_parent, p_input );
                     else /* Play or Enqueue (preparse) */
                         /* FIXME: playlist_AddInput() can fail */
                         playlist_AddInput( p_playlist, p_input,
index f30c0e2f2543e6408a49c4c7cc7ef7d839791121..fa9d408191169045b51623a5feb3b3330e71230b 100644 (file)
@@ -191,7 +191,7 @@ static void resolve_callback(
 
         if( psz_uri != NULL )
         {
-            p_input = input_ItemNewExt( p_sd, psz_uri, name, 0, NULL, -1 );
+            p_input = input_item_NewExt( p_sd, psz_uri, name, 0, NULL, -1 );
             free( (void *)psz_uri );
         }
         if( p_input != NULL )
index fbc3ea65ec868593583ce09d126c971d2b5aa258..b45b5fdee0485db9e789c5b4fa601b05a91dddae 100644 (file)
@@ -213,7 +213,7 @@ static void AddDvd( services_discovery_t *p_sd, const char *psz_device )
     if( asprintf( &psz_uri, "dvd://%s", psz_blockdevice ) == -1 )
         return;
     /* Create the playlist item here */
-    p_input = input_ItemNew( p_sd, psz_uri, psz_name );
+    p_input = input_item_New( p_sd, psz_uri, psz_name );
     free( psz_uri );
     if( !p_input )
     {
@@ -255,7 +255,7 @@ static void AddCdda( services_discovery_t *p_sd, const char *psz_device )
     if( asprintf( &psz_uri, "cdda://%s", psz_blockdevice ) == -1 )
         return;
     /* Create the item here */
-    p_input = input_ItemNew( p_sd, psz_uri, "Audio CD" );
+    p_input = input_item_New( p_sd, psz_uri, "Audio CD" );
     free( psz_uri );
     if( !p_input )
         return;
index 690d0e39d1915fe2873d0902a5e69bae8f66cf00..2c4e8f2ef747f2e00fb7cdc6eff672cb1f3cca31 100644 (file)
@@ -219,9 +219,9 @@ static void ParseUrls( services_discovery_t *p_sd, char *psz_urls )
             input_item_t *p_input;
             INSERT_ELEM( p_sys->ppsz_urls, p_sys->i_urls, p_sys->i_urls,
                          strdup( psz_urls ) );
-            p_input = input_ItemNewExt( p_sd, psz_urls,
+            p_input = input_item_NewExt( p_sd, psz_urls,
                                         psz_urls, 0, NULL, -1 );
-            input_ItemAddOption( p_input, "demux=podcast" );
+            input_item_AddOption( p_input, "demux=podcast" );
             services_discovery_AddItem( p_sd, p_input, NULL /* no cat */ );
             vlc_gc_decref( p_input );
             INSERT_ELEM( p_sys->pp_input, p_sys->i_input, p_sys->i_input,
index ff4b739b72eec0ca3d27aa157da6d1edac525239..7db0acda43a0d91301cb99c167b7d93839b5de1e 100644 (file)
@@ -854,7 +854,7 @@ sap_announce_t *CreateAnnounce( services_discovery_t *p_sd, uint16_t i_hash,
     p_sap->p_sdp = p_sdp;
 
     /* Released in RemoveAnnounce */
-    p_input = input_ItemNewWithType( VLC_OBJECT(p_sd),
+    p_input = input_item_NewWithType( VLC_OBJECT(p_sd),
                                      p_sap->p_sdp->psz_uri,
                                      p_sdp->psz_sessionname,
                                      0, NULL, -1, ITEM_TYPE_NET );
@@ -866,16 +866,16 @@ sap_announce_t *CreateAnnounce( services_discovery_t *p_sd, uint16_t i_hash,
     }
 
     if( p_sys->b_timeshift )
-        input_ItemAddOption( p_input, ":access-filter=timeshift" );
+        input_item_AddOption( p_input, ":access-filter=timeshift" );
 
     psz_value = GetAttribute( p_sap->p_sdp->pp_attributes, p_sap->p_sdp->i_attributes, "tool" );
     if( psz_value != NULL )
     {
-        input_ItemAddInfo( p_input, _("Session"), _("Tool"), "%s", psz_value );
+        input_item_AddInfo( p_input, _("Session"), _("Tool"), "%s", psz_value );
     }
     if( strcmp( p_sdp->username, "-" ) )
     {
-        input_ItemAddInfo( p_input, _("Session"), _("User"), "%s",
+        input_item_AddInfo( p_input, _("Session"), _("User"), "%s",
                            p_sdp->username );
     }
 
index afffb57dd743c8ec86a90b9af0f6b59907cbbdc7..bab1f0204b8370572e9e95697daa8f13f792cf25 100644 (file)
@@ -174,14 +174,14 @@ static input_item_t * CreateInputItemFromShoutItem( services_discovery_t *p_sd,
 {
     int i;
     /* Create the item */
-    input_item_t *p_input = input_ItemNewExt( p_sd,
+    input_item_t *p_input = input_item_NewExt( p_sd,
                     p_item->psz_url, _(p_item->psz_name),
                     0, NULL, -1 );
 
     /* Copy options */
     for( i = 0; p_item->ppsz_options[i] != NULL; i++ )
-        input_ItemAddOption( p_input, p_item->ppsz_options[i] );
-    input_ItemAddOption( p_input, "no-playlist-autostart" );
+        input_item_AddOption( p_input, p_item->ppsz_options[i] );
+    input_item_AddOption( p_input, "no-playlist-autostart" );
 
     return p_input;
 }
index 91bec309b29de85bf476278a1a47c17014987484..7dfe82d0ebbcb130e433fc027f4134c7f17c5064 100644 (file)
@@ -217,7 +217,7 @@ void UPnPHandler::AddContent( playlist_item_t *p_parent, ContentNode *node )
     if ( node->isItemNode() )
     {
         ItemNode *iNode = (ItemNode *)node;
-        input_item_t *p_input = input_ItemNew( p_sd, iNode->getResource(), title );
+        input_item_t *p_input = input_item_New( p_sd, iNode->getResource(), title );
         /* FIXME: playlist_AddInput() can fail */
         playlist_BothAddInput( p_playlist, p_input, p_parent,
                                PLAYLIST_APPEND, PLAYLIST_END, NULL, NULL,
index 0f0cbbd776b71e9ca318d649c35476ee25891d9b..0c3f3a59a797bf7ccc34b882bfdbd85789c908ae 100644 (file)
@@ -880,7 +880,7 @@ void MediaServer::_buildPlaylist( Container* parent )
         Item* item = parent->getItem( i );
         playlist_item_t* parentNode = parent->getPlaylistNode();
 
-        input_item_t* p_input = input_ItemNew( _cookie->serviceDiscovery,
+        input_item_t* p_input = input_item_New( _cookie->serviceDiscovery,
                                                item->getResource(),
                                                item->getTitle() );
         int i_cat;
index c7e64d4db42658d216f2ecaba942585ce81069b5..0192227e887131374d51ceb2e72586ae9a88ba15 100644 (file)
@@ -288,7 +288,7 @@ libvlc_media_t * libvlc_media_new(
     input_item_t * p_input_item;
     libvlc_media_t * p_md;
 
-    p_input_item = input_ItemNew( p_instance->p_libvlc_int, psz_mrl, NULL );
+    p_input_item = input_item_New( p_instance->p_libvlc_int, psz_mrl, NULL );
 
     if (!p_input_item)
     {
@@ -316,7 +316,7 @@ libvlc_media_t * libvlc_media_new_as_node(
     input_item_t * p_input_item;
     libvlc_media_t * p_md;
 
-    p_input_item = input_ItemNew( p_instance->p_libvlc_int, "vlc://nop", psz_name );
+    p_input_item = input_item_New( p_instance->p_libvlc_int, "vlc://nop", psz_name );
 
     if (!p_input_item)
     {
@@ -346,7 +346,7 @@ void libvlc_media_add_option(
                                    libvlc_exception_t *p_e )
 {
     VLC_UNUSED(p_e);
-    input_ItemAddOpt( p_md->p_input_item, ppsz_option,
+    input_item_AddOpt( p_md->p_input_item, ppsz_option,
                       VLC_INPUT_OPTION_UNIQUE|VLC_INPUT_OPTION_TRUSTED );
 }
 
index 8f841448b85c56271a3967593b13e3b93b6df4cf..2eae4971ab4c644dad93b4b111326464378f3af6 100644 (file)
@@ -222,7 +222,7 @@ libvlc_media_list_add_file_content( libvlc_media_list_t * p_mlist,
     input_item_t * p_input_item;
     libvlc_media_t * p_md;
 
-    p_input_item = input_ItemNewExt( p_mlist->p_libvlc_instance->p_libvlc_int, psz_uri,
+    p_input_item = input_item_NewExt( p_mlist->p_libvlc_instance->p_libvlc_int, psz_uri,
                                 _("Media Library"), 0, NULL, -1 );
 
     if( !p_input_item )
index 061d8ccf88a1998543cee2f85ec77c223d75949e..123c9f908faa8c8f1a7d0ab4cc927757c6c9cb3d 100644 (file)
@@ -132,7 +132,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
 
         case INPUT_ADD_INFO:
         {
-            /* FIXME : Impossible to use input_ItemAddInfo because of
+            /* FIXME : Impossible to use input_item_AddInfo because of
              * the ... problem ? */
             char *psz_cat = (char *)va_arg( args, char * );
             char *psz_name = (char *)va_arg( args, char * );
@@ -286,7 +286,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
             int i_ret = VLC_EGENERIC;
             *ppsz_value = NULL;
 
-            *ppsz_value = input_ItemGetInfo( p_input->p->input.p_item,
+            *ppsz_value = input_item_GetInfo( p_input->p->input.p_item,
                                                   psz_cat, psz_name );
             return i_ret;
         }
@@ -515,7 +515,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
             if( asprintf( &str, "%s=%s", psz_option, psz_value ) == -1 )
                 return VLC_ENOMEM;
 
-            i = input_ItemAddOpt( p_input->p->input.p_item, str,
+            i = input_item_AddOpt( p_input->p->input.p_item, str,
                                   VLC_INPUT_OPTION_UNIQUE );
             free( str );
             return i;
index 1dab190711b18c0831cebbd87933a529f699b187..09e14e8e24b358ae4752e9696ab28f5bfdd4c36f 100644 (file)
@@ -36,7 +36,7 @@ static void GuessType( input_item_t *p_item );
 
 /** Stuff moved out of vlc_input.h -- FIXME: should probably not be inline
  * anyway. */
-static inline void input_ItemInit( vlc_object_t *p_o, input_item_t *p_i )
+static inline void input_item_Init( vlc_object_t *p_o, input_item_t *p_i )
 {
     memset( p_i, 0, sizeof(input_item_t) );
     p_i->psz_name = NULL;
@@ -64,7 +64,7 @@ static inline void input_ItemInit( vlc_object_t *p_o, input_item_t *p_i )
     vlc_event_manager_register_event_type( p_em, vlc_InputItemErrorWhenReadingChanged );
 }
 
-static inline void input_ItemClean( input_item_t *p_i )
+static inline void input_item_Clean( input_item_t *p_i )
 {
     int i;
 
@@ -166,7 +166,7 @@ input_item_t *input_GetItem( input_thread_t *p_input )
  *         empty string otherwise. The caller should free the returned
  *         pointer.
  */
-char *input_ItemGetInfo( input_item_t *p_i,
+char *input_item_GetInfo( input_item_t *p_i,
                               const char *psz_cat,
                               const char *psz_name )
 {
@@ -195,14 +195,14 @@ char *input_ItemGetInfo( input_item_t *p_i,
     return strdup( "" );
 }
 
-static void input_ItemDestroy ( gc_object_t *p_this )
+static void input_item_Destroy ( gc_object_t *p_this )
 {
     vlc_object_t *p_obj = (vlc_object_t *)p_this->p_destructor_arg;
     libvlc_priv_t *priv = libvlc_priv (p_obj->p_libvlc);
     input_item_t *p_input = (input_item_t *) p_this;
     int i;
 
-    input_ItemClean( p_input );
+    input_item_Clean( p_input );
 
     vlc_object_lock( p_obj->p_libvlc );
 
@@ -215,7 +215,7 @@ static void input_ItemDestroy ( gc_object_t *p_this )
     free( p_input );
 }
 
-int input_ItemAddOpt( input_item_t *p_input, const char *psz_option,
+int input_item_AddOpt( input_item_t *p_input, const char *psz_option,
                       unsigned flags )
 {
     int err = VLC_SUCCESS;
@@ -247,7 +247,7 @@ out:
     return err;
 }
 
-int input_ItemAddInfo( input_item_t *p_i,
+int input_item_AddInfo( input_item_t *p_i,
                             const char *psz_cat,
                             const char *psz_name,
                             const char *psz_format, ... )
@@ -315,7 +315,7 @@ int input_ItemAddInfo( input_item_t *p_i,
     return p_info->psz_value ? VLC_SUCCESS : VLC_ENOMEM;
 }
 
-input_item_t *__input_ItemGetById( vlc_object_t *p_obj, int i_id )
+input_item_t *__input_item_GetById( vlc_object_t *p_obj, int i_id )
 {
     libvlc_priv_t *priv = libvlc_priv (p_obj->p_libvlc);
     input_item_t * p_ret = NULL;
@@ -332,19 +332,19 @@ input_item_t *__input_ItemGetById( vlc_object_t *p_obj, int i_id )
     return p_ret;
 }
 
-input_item_t *__input_ItemNewExt( vlc_object_t *p_obj, const char *psz_uri,
+input_item_t *__input_item_NewExt( vlc_object_t *p_obj, const char *psz_uri,
                                   const char *psz_name,
                                   int i_options,
                                   const char *const *ppsz_options,
                                   mtime_t i_duration )
 {
-    return input_ItemNewWithType( p_obj, psz_uri, psz_name,
+    return input_item_NewWithType( p_obj, psz_uri, psz_name,
                                   i_options, ppsz_options,
                                   i_duration, ITEM_TYPE_UNKNOWN );
 }
 
 
-input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri,
+input_item_t *input_item_NewWithType( vlc_object_t *p_obj, const char *psz_uri,
                                 const char *psz_name,
                                 int i_options,
                                 const char *const *ppsz_options,
@@ -355,8 +355,8 @@ input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri,
 
     DECMALLOC_NULL( p_input, input_item_t );
 
-    input_ItemInit( p_obj, p_input );
-    vlc_gc_init( p_input, input_ItemDestroy, (void *)p_obj->p_libvlc );
+    input_item_Init( p_obj, p_input );
+    vlc_gc_init( p_input, input_item_Destroy, (void *)p_obj->p_libvlc );
 
     vlc_object_lock( p_obj->p_libvlc );
     p_input->i_id = ++priv->i_last_input_id;
@@ -391,7 +391,7 @@ input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri,
     p_input->i_duration = i_duration;
 
     for( int i = 0; i < i_options; i++ )
-        input_ItemAddOption( p_input, ppsz_options[i] );
+        input_item_AddOption( p_input, ppsz_options[i] );
     return p_input;
 }
 
index ee1db934503c7956d5799f9557f6bc1ca0f161cd..db53c3881c1cc913ad6a2260c34439e1245211c2 100644 (file)
@@ -497,7 +497,7 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
             int i;
 
             vlc_gc_decref( p_media->vod.p_item );
-            p_media->vod.p_item = input_ItemNew( p_vlm, p_cfg->ppsz_input[0],
+            p_media->vod.p_item = input_item_New( p_vlm, p_cfg->ppsz_input[0],
                 p_cfg->psz_name );
 
             if( p_cfg->psz_output )
@@ -510,13 +510,13 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
 
             if( psz_output && asprintf( &psz_dup, "sout=%s", psz_output ) != -1 )
             {
-                input_ItemAddOption( p_media->vod.p_item, psz_dup );
+                input_item_AddOption( p_media->vod.p_item, psz_dup );
                 free( psz_dup );
             }
             free( psz_output );
 
             for( i = 0; i < p_cfg->i_option; i++ )
-                input_ItemAddOption( p_media->vod.p_item,
+                input_item_AddOption( p_media->vod.p_item,
                                      p_cfg->ppsz_option[i] );
 
             if( asprintf( &psz_header, _("Media: %s"), p_cfg->psz_name ) == -1 )
@@ -629,7 +629,7 @@ static int vlm_ControlMediaAdd( vlm_t *p_vlm, vlm_media_t *p_cfg, int64_t *p_id
     p_media->cfg.id = p_vlm->i_id++;
     /* FIXME do we do something here if enabled is true ? */
 
-    p_media->vod.p_item = input_ItemNew( p_vlm, NULL, NULL );
+    p_media->vod.p_item = input_item_New( p_vlm, NULL, NULL );
 
     p_media->vod.p_media = NULL;
     TAB_INIT( p_media->i_instance, p_media->instance );
@@ -748,7 +748,7 @@ static vlm_media_instance_sys_t *vlm_MediaInstanceNew( vlm_t *p_vlm, const char
     if( psz_name )
         p_instance->psz_name = strdup( psz_name );
 
-    p_instance->p_item = input_ItemNew( p_vlm, NULL, NULL );
+    p_instance->p_item = input_item_New( p_vlm, NULL, NULL );
 
     p_instance->i_index = 0;
     p_instance->b_sout_keep = false;
@@ -809,7 +809,7 @@ static int vlm_ControlMediaInstanceStart( vlm_t *p_vlm, int64_t id, const char *
                       (p_cfg->psz_output && psz_vod_output) ? ":" : psz_vod_output ? "#" : "",
                       psz_vod_output ? psz_vod_output : "" ) != -1 )
             {
-                input_ItemAddOption( p_instance->p_item, psz_buffer );
+                input_item_AddOption( p_instance->p_item, psz_buffer );
                 free( psz_buffer );
             }
         }
@@ -821,7 +821,7 @@ static int vlm_ControlMediaInstanceStart( vlm_t *p_vlm, int64_t id, const char *
             else if( !strcmp( p_cfg->ppsz_option[i], "nosout-keep" ) || !strcmp( p_cfg->ppsz_option[i], "no-sout-keep" ) )
                 p_instance->b_sout_keep = false;
             else
-                input_ItemAddOption( p_instance->p_item, p_cfg->ppsz_option[i] );
+                input_item_AddOption( p_instance->p_item, p_cfg->ppsz_option[i] );
         }
         TAB_APPEND( p_media->i_instance, p_media->instance, p_instance );
     }
index c2937f523a791a0aee53276ab6836d76c99933f5..eabf355da99ba08573fb6318c35ed4ce1f4efacc 100644 (file)
@@ -148,12 +148,12 @@ input_DecoderDelete
 input_DecoderNew
 input_get_event_manager
 input_GetItem
-input_ItemAddInfo
-input_ItemAddOpt
-__input_ItemGetById
-input_ItemGetInfo
-__input_ItemNewExt
-input_ItemNewWithType
+input_item_AddInfo
+input_item_AddOpt
+__input_item_GetById
+input_item_GetInfo
+__input_item_NewExt
+input_item_NewWithType
 input_item_SetMeta
 input_MetaTypeToLocalizedString
 __input_Preparse
index 723e1557c357c64456677cbe606eb8ce44042a0a..d1c152d0f99cd823bc9a343063fbe3c02305d759 100644 (file)
@@ -188,7 +188,7 @@ playlist_item_t * playlist_ItemNewWithType( playlist_t *p_playlist,
 {
     input_item_t *p_input;
     if( psz_uri == NULL ) return NULL;
-    p_input = input_ItemNewWithType( VLC_OBJECT(p_playlist), psz_uri,
+    p_input = input_item_NewWithType( VLC_OBJECT(p_playlist), psz_uri,
                                      psz_name, i_options, ppsz_options,
                                      i_duration, i_type );
     return playlist_ItemNewFromInput( p_playlist, p_input );
@@ -377,7 +377,7 @@ int playlist_AddExt( playlist_t *p_playlist, const char * psz_uri,
                      int i_options, bool b_playlist, bool b_locked )
 {
     int i_ret;
-    input_item_t *p_input = input_ItemNewExt( p_playlist, psz_uri, psz_name,
+    input_item_t *p_input = input_item_NewExt( p_playlist, psz_uri, psz_name,
                                               i_options, ppsz_options,
                                               i_duration );
 
index 10660f80cabbc0897d8bf9de114495e9b467c87b..4015c1e93ba7c7a6eda653271d3e6a8546b8ef30 100644 (file)
@@ -140,7 +140,7 @@ int playlist_MLLoad( playlist_t *p_playlist )
     const char *const psz_option = "meta-file";
     /* that option has to be cleaned in input_item_subitem_added() */
     /* vlc_gc_decref() in the same function */
-    p_input = input_ItemNewExt( p_playlist, psz_uri,
+    p_input = input_item_NewExt( p_playlist, psz_uri,
                                 _("Media Library"), 1, &psz_option, -1 );
     if( p_input == NULL )
         goto error;
index c4553cc8e7bc182e3874f83fc2f8757e2b8c54db..1a8d0cc9245b64bfb10261f107e24db5e7aab698 100644 (file)
@@ -66,7 +66,7 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist,
     if( !psz_name ) psz_name = _("Undefined");
 
     if( !p_input )
-        p_new_input = input_ItemNewWithType( VLC_OBJECT(p_playlist), NULL,
+        p_new_input = input_item_NewWithType( VLC_OBJECT(p_playlist), NULL,
                                         psz_name, 0, NULL, -1, ITEM_TYPE_NODE );
     p_item = playlist_ItemNewFromInput( p_playlist,
                                         p_input ? p_input : p_new_input );