playlist/item: playlist_Add: fix documentation
[vlc.git] / lib / playlist.c
blob2aa6e1c705154f56dd5041ff57dc20d168848467
1 /*****************************************************************************
2 * playlist.c: libvlc new API playlist handling functions
3 *****************************************************************************
4 * Copyright (C) 2005 VLC authors and VideoLAN
5 * $Id$
7 * Authors: Clément Stenac <zorglub@videolan.org>
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation; either version 2.1 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifdef HAVE_CONFIG_H
25 # include "config.h"
26 #endif
28 #include "libvlc_internal.h"
29 #include "../src/libvlc.h"
31 #include <vlc/vlc.h>
33 #include <vlc_playlist.h>
35 #include <assert.h>
37 void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
38 int i_options, char **ppsz_options )
40 libvlc_InternalPlay( p_instance->p_libvlc_int );
41 VLC_UNUSED(i_id); VLC_UNUSED(i_options); VLC_UNUSED(ppsz_options);
44 int libvlc_add_intf( libvlc_instance_t *p_instance, const char *name )
46 if( libvlc_InternalAddIntf( p_instance->p_libvlc_int, name ))
48 if( name != NULL )
49 libvlc_printerr("interface \"%s\" initialization failed", name );
50 else
51 libvlc_printerr("default interface initialization failed");
52 return -1;
54 return 0;