Ever const
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 10 Nov 2006 20:45:26 +0000 (20:45 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 10 Nov 2006 20:45:26 +0000 (20:45 +0000)
include/vlc_playlist.h
include/vlc_symbols.h
src/playlist/tree.c

index afb8d8c..9afb01d 100644 (file)
@@ -400,14 +400,14 @@ VLC_EXPORT(void, playlist_NodeDump, ( playlist_t *p_playlist, playlist_item_t *p
 VLC_EXPORT( int, playlist_NodeChildrenCount, (playlist_t *,playlist_item_t* ) );
 
 /* Node management */
-VLC_EXPORT( playlist_item_t *, playlist_NodeCreate, ( playlist_t *, char *, playlist_item_t * p_parent ) );
+VLC_EXPORT( playlist_item_t *, playlist_NodeCreate, ( playlist_t *, const char *, playlist_item_t * p_parent ) );
 VLC_EXPORT( int, playlist_NodeAppend, (playlist_t *,playlist_item_t*,playlist_item_t *) );
 VLC_EXPORT( int, playlist_NodeInsert, (playlist_t *,playlist_item_t*,playlist_item_t *, int) );
 VLC_EXPORT( int, playlist_NodeRemoveItem, (playlist_t *,playlist_item_t*,playlist_item_t *) );
 VLC_EXPORT( playlist_item_t *, playlist_ChildSearchName, (playlist_item_t*, const char* ) );
 VLC_EXPORT( int, playlist_NodeDelete, ( playlist_t *, playlist_item_t *, vlc_bool_t , vlc_bool_t ) );
 VLC_EXPORT( int, playlist_NodeEmpty, ( playlist_t *, playlist_item_t *, vlc_bool_t ) );
-VLC_EXPORT( void, playlist_NodesPairCreate, (playlist_t *, char *, playlist_item_t **, playlist_item_t **, vlc_bool_t ) );
+VLC_EXPORT( void, playlist_NodesPairCreate, (playlist_t *, const char *, playlist_item_t **, playlist_item_t **, vlc_bool_t ) );
 VLC_EXPORT( playlist_item_t *, playlist_GetPreferredNode, ( playlist_t *p_playlist, playlist_item_t *p_node ) );
 
 /***********************************************************************
index 9137277..9337809 100644 (file)
@@ -279,7 +279,7 @@ struct module_symbols_t
     void *playlist_ViewUpdate_deprecated;
     void *playlist_ViewDump_deprecated;
     void *playlist_ViewEmpty_deprecated;
-    playlist_item_t * (*playlist_NodeCreate_inner) (playlist_t *, char *, playlist_item_t * p_parent);
+    playlist_item_t * (*playlist_NodeCreate_inner) (playlist_t *, const char *, playlist_item_t * p_parent);
     int (*playlist_NodeAppend_inner) (playlist_t *,playlist_item_t*,playlist_item_t *);
     int (*playlist_NodeInsert_inner) (playlist_t *,playlist_item_t*,playlist_item_t *, int);
     int (*playlist_NodeRemoveItem_inner) (playlist_t *,playlist_item_t*,playlist_item_t *);
@@ -536,7 +536,7 @@ struct module_symbols_t
     int (*net_SetDSCP_inner) (int fd, uint8_t dscp);
     void (*vout_EnableFilter_inner) (vout_thread_t *, char *,vlc_bool_t , vlc_bool_t);
     void (*aout_EnableFilter_inner) (vlc_object_t *, const char *, vlc_bool_t);
-    void (*playlist_NodesPairCreate_inner) (playlist_t *, char *, playlist_item_t **, playlist_item_t **, vlc_bool_t);
+    void (*playlist_NodesPairCreate_inner) (playlist_t *, const char *, playlist_item_t **, playlist_item_t **, vlc_bool_t);
     char * (*aout_VisualChange_inner) (vlc_object_t *, int);
     void *__input_SecondaryPreparse_deprecated;
     void (*input_ItemAddOption_inner) (input_item_t *, const char *);
index e22ae7d..552f3e5 100644 (file)
@@ -49,7 +49,7 @@ playlist_item_t *GetPrevItem( playlist_t *p_playlist,
  * \param p_parent the parent node to attach to or NULL if no attach
  * \return the new node
  */
-playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist, char *psz_name,
+playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist, const char *psz_name,
                                        playlist_item_t *p_parent )
 {
     input_item_t *p_input;
@@ -285,7 +285,7 @@ playlist_item_t *playlist_ChildSearchName( playlist_item_t *p_node,
  * \param pp_node_one pointer to return the node in onelevel tree
  * \param b_for_sd For Services Discovery ? (make node read-only and unskipping)
  */
-void playlist_NodesPairCreate( playlist_t *p_playlist, char *psz_name,
+void playlist_NodesPairCreate( playlist_t *p_playlist, const char *psz_name,
                                playlist_item_t **pp_node_cat,
                                playlist_item_t **pp_node_one,
                                vlc_bool_t b_for_sd )