dbUtils.h: move to DatabaseQueue.hxx, DatabasePlaylist.hxx
This commit is contained in:
parent
f35ceaee0a
commit
4d6c816abb
@ -254,8 +254,8 @@ src_mpd_SOURCES = \
|
|||||||
src/directory_save.c \
|
src/directory_save.c \
|
||||||
src/DatabaseGlue.cxx \
|
src/DatabaseGlue.cxx \
|
||||||
src/DatabasePrint.cxx \
|
src/DatabasePrint.cxx \
|
||||||
src/DatabaseQueue.cxx \
|
src/DatabaseQueue.cxx src/DatabaseQueue.hxx \
|
||||||
src/DatabasePlaylist.cxx \
|
src/DatabasePlaylist.cxx src/DatabasePlaylist.hxx \
|
||||||
src/db_error.h \
|
src/db_error.h \
|
||||||
src/db_lock.c src/db_lock.h \
|
src/db_lock.c src/db_lock.h \
|
||||||
src/db_save.c src/db_save.h \
|
src/db_save.c src/db_save.h \
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "DatabaseCommands.hxx"
|
#include "DatabaseCommands.hxx"
|
||||||
|
#include "DatabaseQueue.hxx"
|
||||||
|
#include "DatabasePlaylist.hxx"
|
||||||
#include "CommandError.h"
|
#include "CommandError.h"
|
||||||
#include "client_internal.h"
|
#include "client_internal.h"
|
||||||
#include "tag.h"
|
#include "tag.h"
|
||||||
@ -27,7 +29,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#include "db_print.h"
|
#include "db_print.h"
|
||||||
#include "db_selection.h"
|
#include "db_selection.h"
|
||||||
#include "dbUtils.h"
|
|
||||||
#include "locate.h"
|
#include "locate.h"
|
||||||
#include "protocol/result.h"
|
#include "protocol/result.h"
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "DatabasePlaylist.hxx"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "dbUtils.h"
|
#include "dbUtils.h"
|
||||||
|
34
src/DatabasePlaylist.hxx
Normal file
34
src/DatabasePlaylist.hxx
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2003-2011 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_DATABASE_PLAYLIST_HXX
|
||||||
|
#define MPD_DATABASE_PLAYLIST_HXX
|
||||||
|
|
||||||
|
#include "gcc.h"
|
||||||
|
#include "gerror.h"
|
||||||
|
|
||||||
|
struct locate_item_list;
|
||||||
|
|
||||||
|
gcc_nonnull(1,2,3)
|
||||||
|
bool
|
||||||
|
search_add_to_playlist(const char *uri, const char *path_utf8,
|
||||||
|
const struct locate_item_list *criteria,
|
||||||
|
GError **error_r);
|
||||||
|
|
||||||
|
#endif
|
@ -18,6 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "DatabaseQueue.hxx"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "dbUtils.h"
|
#include "dbUtils.h"
|
||||||
|
39
src/DatabaseQueue.hxx
Normal file
39
src/DatabaseQueue.hxx
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2003-2011 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_DATABASE_QUEUE_HXX
|
||||||
|
#define MPD_DATABASE_QUEUE_HXX
|
||||||
|
|
||||||
|
#include "gcc.h"
|
||||||
|
#include "gerror.h"
|
||||||
|
|
||||||
|
struct locate_item_list;
|
||||||
|
struct player_control;
|
||||||
|
|
||||||
|
gcc_nonnull(1,2,3)
|
||||||
|
bool
|
||||||
|
findAddIn(struct player_control *pc, const char *name,
|
||||||
|
const struct locate_item_list *criteria, GError **error_r);
|
||||||
|
|
||||||
|
gcc_nonnull(1,2,3)
|
||||||
|
bool
|
||||||
|
search_add_songs(struct player_control *pc, const char *uri,
|
||||||
|
const struct locate_item_list *criteria, GError **error_r);
|
||||||
|
|
||||||
|
#endif
|
@ -37,20 +37,4 @@ bool
|
|||||||
addAllInToStoredPlaylist(const char *uri_utf8, const char *path_utf8,
|
addAllInToStoredPlaylist(const char *uri_utf8, const char *path_utf8,
|
||||||
GError **error_r);
|
GError **error_r);
|
||||||
|
|
||||||
gcc_nonnull(1,2,3)
|
|
||||||
bool
|
|
||||||
findAddIn(struct player_control *pc, const char *name,
|
|
||||||
const struct locate_item_list *criteria, GError **error_r);
|
|
||||||
|
|
||||||
gcc_nonnull(1,2,3)
|
|
||||||
bool
|
|
||||||
search_add_songs(struct player_control *pc, const char *uri,
|
|
||||||
const struct locate_item_list *criteria, GError **error_r);
|
|
||||||
|
|
||||||
gcc_nonnull(1,2,3)
|
|
||||||
bool
|
|
||||||
search_add_to_playlist(const char *uri, const char *path_utf8,
|
|
||||||
const struct locate_item_list *criteria,
|
|
||||||
GError **error_r);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -51,7 +51,6 @@
|
|||||||
#include "playlist_list.h"
|
#include "playlist_list.h"
|
||||||
#include "state_file.h"
|
#include "state_file.h"
|
||||||
#include "tag.h"
|
#include "tag.h"
|
||||||
#include "dbUtils.h"
|
|
||||||
#include "zeroconf.h"
|
#include "zeroconf.h"
|
||||||
#include "event_pipe.h"
|
#include "event_pipe.h"
|
||||||
#include "tag_pool.h"
|
#include "tag_pool.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user