Playlist.hxx: move prototype to PlaylistGlobal.hxx

This commit is contained in:
Max Kellermann 2013-01-09 22:23:37 +01:00
parent 4bef0a1e62
commit b5e1bd5705
5 changed files with 29 additions and 4 deletions

View File

@ -261,7 +261,7 @@ src_mpd_SOURCES = \
src/PlayerThread.cxx src/PlayerThread.hxx \
src/PlayerControl.cxx src/PlayerControl.hxx \
src/Playlist.cxx \
src/PlaylistGlobal.cxx \
src/PlaylistGlobal.cxx src/PlaylistGlobal.hxx \
src/PlaylistControl.cxx \
src/PlaylistEdit.cxx \
src/PlaylistPrint.cxx src/PlaylistPrint.hxx \

View File

@ -21,6 +21,7 @@
#include "Main.hxx"
#include "CommandLine.hxx"
#include "PlaylistFile.hxx"
#include "PlaylistGlobal.hxx"
#include "UpdateGlue.hxx"
#include "MusicChunk.hxx"
#include "StateFile.hxx"

View File

@ -253,7 +253,4 @@ public:
void SetConsume(bool new_value);
};
void
playlist_global_init();
#endif

View File

@ -23,6 +23,7 @@
*/
#include "config.h"
#include "PlaylistGlobal.hxx"
#include "Playlist.hxx"
#include "Main.hxx"
#include "Partition.hxx"

26
src/PlaylistGlobal.hxx Normal file
View File

@ -0,0 +1,26 @@
/*
* Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_PLAYLIST_GLOBAL_HXX
#define MPD_PLAYLIST_GLOBAL_HXX
void
playlist_global_init();
#endif