]> git.sesse.net Git - vlc/commitdiff
* src/playlist/loadsave.c: doxygenization
authorDerk-Jan Hartman <hartman@videolan.org>
Mon, 12 Jan 2004 21:22:23 +0000 (21:22 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 12 Jan 2004 21:22:23 +0000 (21:22 +0000)
* modules/gui/macosx/playlist.m: fix playlist_Export

modules/gui/macosx/playlist.m
src/playlist/loadsave.c

index 21cd0d943f0ee43e57e7b7e1b968376306d8f52c..58101e57c5ec8f2f2868e7101da07b71f5da851f 100644 (file)
@@ -2,7 +2,7 @@
  * playlist.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2004 VideoLAN
- * $Id: playlist.m,v 1.51 2004/01/09 22:11:04 hartman Exp $
+ * $Id: playlist.m,v 1.52 2004/01/12 21:22:22 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Derk-Jan Hartman <hartman at videolan dot org>
     if( [o_save_panel runModalForDirectory: nil
             file: o_name] == NSOKButton )
     {
-        playlist_SaveFile( p_playlist, [[o_save_panel filename] fileSystemRepresentation] );
+        playlist_Export( p_playlist, [[o_save_panel filename] fileSystemRepresentation], "m3u" );
     }
 
 }
index add2812dcf13f75bfd4005d67e9ddafae671ecc7..41cc826126c12275e8ff8bdd88ffa9d040b2e714 100644 (file)
@@ -2,7 +2,7 @@
  * loadsave.c : Playlist loading / saving functions
  *****************************************************************************
  * Copyright (C) 1999-2004 VideoLAN
- * $Id: loadsave.c,v 1.4 2004/01/11 00:45:06 zorglub Exp $
+ * $Id: loadsave.c,v 1.5 2004/01/12 21:22:23 hartman Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
 #define PLAYLIST_FILE_HEADER  "# vlc playlist file version 0.5"
 
 
-/*****************************************************************************
- * playlist_Import: load a playlist file.
- ****************************************************************************/
+/**
+ * Import a playlist file
+ *
+ * Import a certain playlist file into the playlist
+ * \param p_playlist the playlist to which the new items will be added
+ * \param psz_filename the name of the playlistfile to import
+ * \return 0 on succes
+ */
 int playlist_Import( playlist_t * p_playlist, const char *psz_filename )
 {
     playlist_item_t *p_item;
@@ -72,9 +77,15 @@ int playlist_Import( playlist_t * p_playlist, const char *psz_filename )
     return VLC_SUCCESS;
 }
 
-/*****************************************************************************
- * playlist_SaveFile: Save a playlist in a file.
- *****************************************************************************/
+/**
+ * Export a playlist to a file
+ *
+ * Export a playlist to a certain type of playlistfile
+ * \param p_playlist the playlist to export
+ * \param psz_filename the location where the exported file will be saved
+ * \param psz_type the type of playlist file to create.
+ * \return 0 on succes
+ */
 int playlist_Export( playlist_t * p_playlist, const char *psz_filename ,
                      const char *psz_type)
 {