/* System headers */
#include <InterfaceKit.h>
#include <StorageKit.h>
-#include <string.h>
/* VLC headers */
-#include <vlc/vlc.h>
-#include <vlc/intf.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
+#include <vlc_interface.h>
/* BeOS interface headers */
#include "InterfaceWindow.h"
snprintf( psz_tmp, 1024, "%s%s", a, B_UTF8_ELLIPSIS );
p_intf = p_interface;
-
+
SetName( _("playlist") );
// set up the main menu bar
bool
PlayListWindow::QuitRequested()
{
- Hide();
+ Hide();
return false;
}
if( rebuild )
fListView->RebuildList();
- p_playlist = (playlist_t *)
- vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+ p_playlist = pl_Yield( p_intf );
fListView->SetCurrent( p_playlist->i_index );
fListView->SetPlaying( p_playlist->status.i_status == PLAYLIST_RUNNING );
- vlc_object_release( p_playlist );
+ pl_Release( p_intf );
_CheckItemsEnableState();
}