Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
4d6c816a
Commit
4d6c816a
authored
Aug 07, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbUtils.h: move to DatabaseQueue.hxx, DatabasePlaylist.hxx
parent
f35ceaee
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
79 additions
and
20 deletions
+79
-20
Makefile.am
Makefile.am
+2
-2
DatabaseCommands.cxx
src/DatabaseCommands.cxx
+2
-1
DatabasePlaylist.cxx
src/DatabasePlaylist.cxx
+1
-0
DatabasePlaylist.hxx
src/DatabasePlaylist.hxx
+34
-0
DatabaseQueue.cxx
src/DatabaseQueue.cxx
+1
-0
DatabaseQueue.hxx
src/DatabaseQueue.hxx
+39
-0
dbUtils.h
src/dbUtils.h
+0
-16
main.c
src/main.c
+0
-1
No files found.
Makefile.am
View file @
4d6c816a
...
...
@@ -254,8 +254,8 @@ src_mpd_SOURCES = \
src/directory_save.c
\
src/DatabaseGlue.cxx
\
src/DatabasePrint.cxx
\
src/DatabaseQueue.cxx
\
src/DatabasePlaylist.cxx
\
src/DatabaseQueue.cxx
src/DatabaseQueue.hxx
\
src/DatabasePlaylist.cxx
src/DatabasePlaylist.hxx
\
src/db_error.h
\
src/db_lock.c src/db_lock.h
\
src/db_save.c src/db_save.h
\
...
...
src/DatabaseCommands.cxx
View file @
4d6c816a
...
...
@@ -19,6 +19,8 @@
#include "config.h"
#include "DatabaseCommands.hxx"
#include "DatabaseQueue.hxx"
#include "DatabasePlaylist.hxx"
#include "CommandError.h"
#include "client_internal.h"
#include "tag.h"
...
...
@@ -27,7 +29,6 @@
extern
"C"
{
#include "db_print.h"
#include "db_selection.h"
#include "dbUtils.h"
#include "locate.h"
#include "protocol/result.h"
}
...
...
src/DatabasePlaylist.cxx
View file @
4d6c816a
...
...
@@ -18,6 +18,7 @@
*/
#include "config.h"
#include "DatabasePlaylist.hxx"
extern
"C"
{
#include "dbUtils.h"
...
...
src/DatabasePlaylist.hxx
0 → 100644
View file @
4d6c816a
/*
* 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
src/DatabaseQueue.cxx
View file @
4d6c816a
...
...
@@ -18,6 +18,7 @@
*/
#include "config.h"
#include "DatabaseQueue.hxx"
extern
"C"
{
#include "dbUtils.h"
...
...
src/DatabaseQueue.hxx
0 → 100644
View file @
4d6c816a
/*
* 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
src/dbUtils.h
View file @
4d6c816a
...
...
@@ -37,20 +37,4 @@ bool
addAllInToStoredPlaylist
(
const
char
*
uri_utf8
,
const
char
*
path_utf8
,
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
src/main.c
View file @
4d6c816a
...
...
@@ -51,7 +51,6 @@
#include "playlist_list.h"
#include "state_file.h"
#include "tag.h"
#include "dbUtils.h"
#include "zeroconf.h"
#include "event_pipe.h"
#include "tag_pool.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment