Commit a5366028 authored by sigmunau's avatar sigmunau
Browse files

src/playlist/item*

 * Updated documentation on playlist_Add* (they return a id, not the position)
parent 076be835
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* item-ext.c : Exported playlist item functions * item-ext.c : Exported playlist item functions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2004 VideoLAN * Copyright (C) 1999-2004 VideoLAN
* $Id: item-ext.c,v 1.9 2004/01/17 12:28:57 gbazin Exp $ * $Id: item-ext.c,v 1.10 2004/01/17 14:08:37 sigmunau Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Clément Stenac <zorglub@videolan.org> * Clément Stenac <zorglub@videolan.org>
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
* PLAYLIST_END the item will be added at the end of the playlist * PLAYLIST_END the item will be added at the end of the playlist
* regardless of it's size * regardless of it's size
* \param i_duration length of the item in milliseconds. * \param i_duration length of the item in milliseconds.
* \return the position of the new item * \return The id of the playlist item
*/ */
int playlist_AddWDuration( playlist_t *p_playlist, const char * psz_uri, int playlist_AddWDuration( playlist_t *p_playlist, const char * psz_uri,
const char *psz_name, int i_mode, int i_pos, const char *psz_name, int i_mode, int i_pos,
...@@ -89,7 +89,7 @@ int playlist_AddWDuration( playlist_t *p_playlist, const char * psz_uri, ...@@ -89,7 +89,7 @@ int playlist_AddWDuration( playlist_t *p_playlist, const char * psz_uri,
* \param i_pos the position in the playlist where to add. If this is * \param i_pos the position in the playlist where to add. If this is
* PLAYLIST_END the item will be added at the end of the playlist * PLAYLIST_END the item will be added at the end of the playlist
* regardless of it's size * regardless of it's size
* \return the position of the new item * \return The id of the playlist item
*/ */
int playlist_Add( playlist_t *p_playlist, const char * psz_uri, int playlist_Add( playlist_t *p_playlist, const char * psz_uri,
const char *psz_name, int i_mode, int i_pos ) const char *psz_name, int i_mode, int i_pos )
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* item.c : Playlist item functions * item.c : Playlist item functions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2004 VideoLAN * Copyright (C) 1999-2004 VideoLAN
* $Id: item.c,v 1.11 2004/01/06 08:50:20 zorglub Exp $ * $Id: item.c,v 1.12 2004/01/17 14:08:37 sigmunau Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
* \param i_pos the possition in the playlist where to add. If this is * \param i_pos the possition in the playlist where to add. If this is
* PLAYLIST_END the item will be added at the end of the playlist * PLAYLIST_END the item will be added at the end of the playlist
* regardless of it's size * regardless of it's size
* \return position of the new item * \return The id of the playlist item
*/ */
int playlist_AddItem( playlist_t *p_playlist, playlist_item_t * p_item, int playlist_AddItem( playlist_t *p_playlist, playlist_item_t * p_item,
int i_mode, int i_pos) int i_mode, int i_pos)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment