audiotrack: refactor
[vlc.git] / lib / playlist.c
blob92fca47e02521b2338258fdea5117b483a1bf71b
1 /*****************************************************************************
2 * playlist.c: libvlc new API playlist handling functions
3 *****************************************************************************
4 * Copyright (C) 2005 VLC authors and VideoLAN
6 * Authors: Clément Stenac <zorglub@videolan.org>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
23 #ifdef HAVE_CONFIG_H
24 # include "config.h"
25 #endif
27 #include "libvlc_internal.h"
28 #include "../src/libvlc.h"
30 #include <vlc/vlc.h>
32 #include <assert.h>
34 void libvlc_playlist_play( libvlc_instance_t *p_instance )
36 libvlc_InternalPlay( p_instance->p_libvlc_int );
39 int libvlc_add_intf( libvlc_instance_t *p_instance, const char *name )
41 if( libvlc_InternalAddIntf( p_instance->p_libvlc_int, name ))
43 if( name != NULL )
44 libvlc_printerr("interface \"%s\" initialization failed", name );
45 else
46 libvlc_printerr("default interface initialization failed");
47 return -1;
49 return 0;